web,ssm框架
DoubleCircle-OO
这个作者很懒,什么都没留下…
展开
-
Springboot-docker篇
在虚拟机上安装docker查看linux的ipip addr在linux虚拟机上安装docker1.检查内核版本,必须是3.10及以上uname -r(若不是需升级)yum update2.安装dockeryum install docker3.输入y确认安装4.启动dockersystemctl start docker(查看版本号)docker -v...原创 2020-03-16 19:15:21 · 98 阅读 · 0 评论 -
Springboot-web篇---part03-登录,拦截
登录开发期间模板引擎页面修改好以后要实时生效1.禁用模板引擎的缓存spring.thymeleaf.cache= false2.页面修改完ctrl+f9:重新编译拦截器public class LoginHandlerInterceptor implements HandlerInterceptor{ @Override public boolean preHandl...原创 2020-03-13 21:03:51 · 123 阅读 · 0 评论 -
Springboot-web篇---part02-引入资源,静态资源映射,国际化
默认访问首页的设置方式方式一 :controller中 @RequestMapping({"/","/index.html"}) public String index(){ return "index"; }方式二:MyMvcConfig中//所有的WebMvcConfigurerAdapter组件都会一起起作用@Bean//讲组件注册在容器中...原创 2020-03-06 18:51:31 · 112 阅读 · 0 评论 -
Springboot-web篇---part01-webjars
SpringBoot对静态资源的映射规则1.所有/webjars/**,都去classpath:/META-INF/resources/webjars/找资源;webjars:以jar包的方式引入静态资源;https://www.webjars.org/引入静态资源jquary-webjars <dependency> <group...原创 2020-03-03 21:26:12 · 98 阅读 · 0 评论 -
Springboot基础篇---part02-配置文件及自动配置原理
配置文件SpringBoot使用一个全局的配置文件,配置文件有两种形式application.propertiesappliciation.yml原创 2020-03-01 19:14:35 · 129 阅读 · 0 评论 -
Springboot基础篇---part01-HelloWorld
Springboot之HelloWorld实现 :浏览器发送hello请求,服务器接收请求并处理,响应Hello World! 字符串1.创建一个maven工程(利用idea自身优势jar)2.导入依赖springboot相关的依赖-进入springboot官网,Quick Start->搜索并复制->粘贴后自动导入相应依赖<parent> ...原创 2020-03-01 19:13:36 · 111 阅读 · 0 评论 -
报错:One or more listeners failed to start. Full details will be found in the appropriate contain
One or more listeners failed to start. Full details will be found in the appropriate container log file卡了一天!!!!!!!!!!!!!!!!这里多了个空格!!!哈哈哈哈哈哈啊哈噗噗噗噗噗噗噗噗噗!...原创 2019-10-28 20:17:06 · 218 阅读 · 1 评论 -
报错:java.net.ConnectException: Connection refused: connect
jedis连接redis是报错:java.net.ConnectException: Connection refused: connect1.Jedis jedis =new Jedis(“192.168.233.128”,6379);ip和端口号一定要对应,(centos6查看ip的命令:ifconfig)2.检查是否已开启redisredis-server /myredis/redi...原创 2019-10-23 21:00:31 · 244 阅读 · 0 评论 -
Mybatis基础-初级学习笔记
Mybatis操作顺序1.导入Mybatis的jar包2.创建一个全局配置文件 mybatis-config.xml, 根据全局配置文件,创建一个SqlSessionFactory3.创建一个sql映射文件,EmployeeMapper.xml,该配置文件中配置了sql语句4.将sql映射文件注册到全局配置文件中5.从SqlSessionFactory中获取SqlSession对象,...原创 2019-08-02 16:06:39 · 80 阅读 · 0 评论 -
servlet---初级学习笔记
http发布方式:方式一:将项目放在webapps下访问路径:http://主机:端口号/项目名称/资源路径http:要求:掌握一些头信息超文本传输协议:规定数据的格式浏览器往服务器发送---------- 请求服务器往浏览器发送---------- 响应请求:组成部分:请求行 请求头 请求体格式:请求方式 访问的资源 协议/版本例如:GET ...原创 2019-05-13 20:49:24 · 118 阅读 · 0 评论