![](https://img-blog.csdnimg.cn/20201014180756925.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
web,ssm框架
DoubleCircle-OO
这个作者很懒,什么都没留下…
展开
-
Springboot-docker篇
在虚拟机上安装docker 查看linux的ip ip addr 在linux虚拟机上安装docker 1.检查内核版本,必须是3.10及以上 uname -r (若不是需升级) yum update 2.安装docker yum install docker 3.输入y确认安装 4.启动docker systemctl start docker (查看版本号) docker -v ...原创 2020-03-16 19:15:21 · 100 阅读 · 0 评论 -
Springboot-web篇---part03-登录,拦截
登录 开发期间模板引擎页面修改好以后要实时生效 1.禁用模板引擎的缓存 spring.thymeleaf.cache= false 2.页面修改完ctrl+f9:重新编译 拦截器 public class LoginHandlerInterceptor implements HandlerInterceptor{ @Override public boolean preHandl...原创 2020-03-13 21:03:51 · 124 阅读 · 0 评论 -
Springboot-web篇---part02-引入资源,静态资源映射,国际化
默认访问首页的设置方式 方式一 : controller中 @RequestMapping({"/","/index.html"}) public String index(){ return "index"; } 方式二: MyMvcConfig中 //所有的WebMvcConfigurerAdapter组件都会一起起作用 @Bean//讲组件注册在容器中...原创 2020-03-06 18:51:31 · 115 阅读 · 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 · 99 阅读 · 0 评论 -
Springboot基础篇---part02-配置文件及自动配置原理
配置文件 SpringBoot使用一个全局的配置文件,配置文件有两种形式 application.properties appliciation.yml原创 2020-03-01 19:14:35 · 132 阅读 · 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 · 113 阅读 · 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 · 220 阅读 · 1 评论 -
报错:java.net.ConnectException: Connection refused: connect
jedis连接redis是报错:java.net.ConnectException: Connection refused: connect 1.Jedis jedis =new Jedis(“192.168.233.128”,6379); ip和端口号一定要对应,(centos6查看ip的命令:ifconfig) 2.检查是否已开启redis redis-server /myredis/redi...原创 2019-10-23 21:00:31 · 270 阅读 · 0 评论 -
Mybatis基础-初级学习笔记
Mybatis操作顺序 1.导入Mybatis的jar包 2.创建一个全局配置文件 mybatis-config.xml, 根据全局配置文件,创建一个SqlSessionFactory 3.创建一个sql映射文件,EmployeeMapper.xml,该配置文件中配置了sql语句 4.将sql映射文件注册到全局配置文件中 5.从SqlSessionFactory中获取SqlSession对象,...原创 2019-08-02 16:06:39 · 82 阅读 · 0 评论 -
servlet---初级学习笔记
http 发布方式: 方式一:将项目放在webapps下 访问路径: http://主机:端口号/项目名称/资源路径 http:要求:掌握一些头信息 超文本传输协议: 规定数据的格式 浏览器往服务器发送---------- 请求 服务器往浏览器发送---------- 响应 请求: 组成部分: 请求行 请求头 请求体 格式:请求方式 访问的资源 协议/版本 例如:GET ...原创 2019-05-13 20:49:24 · 120 阅读 · 0 评论