MatrixRhythm

  博客园  :: 首页  :: 新随笔  :: 联系 :: 订阅 订阅  :: 管理

2019年6月2日

摘要: 知识点: 1、SpringBoot2.x过滤器Filter和使用Servlet3.0配置自定义Filter(核心知识) filter简单理解:人 >检票员(filter) > 景点 1)SpringBoot启动默认加载的Filter characterEncodingFilter hiddenHtt 阅读全文
posted @ 2019-06-02 20:38 Matrix锅锅 阅读(1005) 评论(0) 推荐(0) 编辑

摘要: 参考:https://blog.csdn.net/LCF_lxf_ldy/article/details/82558172 阅读全文
posted @ 2019-06-02 20:09 Matrix锅锅 阅读(137) 评论(0) 推荐(0) 编辑

2019年6月1日

摘要: 知识点: 1、SpringBoot常见启动方式讲解和部署war项目Tomcat 1)、ide启动 2)、jar包方式启动 maven插件: 如果没有加,则执行jar包 ,报错如下: java -jar spring-boot-demo-0.0.1-SNAPSHOT.jar no main manif 阅读全文
posted @ 2019-06-01 22:58 Matrix锅锅 阅读(10951) 评论(0) 推荐(0) 编辑

摘要: 知识点: 1、SpringBoot2.x服务端异常和SpringBoot配置全局异常 1)、默认异常测试 int i = 1/0,不友好 2)、异常注解介绍 @ControllerAdvice 如果是返回json数据 则用 RestControllerAdvice,就可以不加 @ResponseBo 阅读全文
posted @ 2019-06-01 22:47 Matrix锅锅 阅读(300) 评论(0) 推荐(0) 编辑

摘要: 知识点:Springboot2.0单元测试和自定义异常处理 1、@SpringBootTest单元测试 1)、引入相关依赖 2)、使用 3)单元测试注解 a )@Test b)@Before 在Test前执行 c)@After 在Test后执行 2、SpringBoot测试进阶之MockMvc类的使 阅读全文
posted @ 2019-06-01 22:33 Matrix锅锅 阅读(4433) 评论(0) 推荐(0) 编辑

摘要: 知识点:SpringBoot2.x使用Dev-tool工具热部署,快速加载启动应用 官方地址:https://docs.spring.io/spring-boot/docs/2.1.0.BUILD-SNAPSHOT/reference/htmlsingle/#using-boot-devtools 阅读全文
posted @ 2019-06-01 19:49 Matrix锅锅 阅读(2623) 评论(0) 推荐(0) 编辑

2019年5月31日

摘要: 知识点1:SpringBoot2.x常见的配置文件 xml、yml、properties的区别和使用xml、properties、json、yaml 1、常见的配置文件 xx.yml, xx.properties 1) YAML(Yet Another Markup Language) 写 YAML 阅读全文
posted @ 2019-05-31 20:38 Matrix锅锅 阅读(1473) 评论(0) 推荐(0) 编辑

摘要: 报错: 2019-05-31 11:38:42.645 WARN 18756 [nio-8080-exec-1] .w.s.m.s.DefaultHandlerExceptionResolver : Resolved [org.springframework.http.converter.HttpM 阅读全文
posted @ 2019-05-31 12:18 Matrix锅锅 阅读(274) 评论(0) 推荐(0) 编辑

2019年5月30日

摘要: SpringBoot目录文件结构和官方推荐的目录规范 1、目录 src/main/java:存放代码 src/main/resources static: 存放静态文件,比如 css、js、image, (访问方式 http://localhost:8080/js/main.js) template 阅读全文
posted @ 2019-05-30 18:46 Matrix锅锅 阅读(1858) 评论(0) 推荐(0) 编辑

摘要: netstat -tunlp|grep 端口号 window如何查看端口是否被占用 根据端口号查找占用该端口程序的pid:netstat -aon|findstr 端口号(查询出来的最后一列即pid) 结果中最后一列就是进程id,得到进程id后就可以通过taskkill命令结束它,如下:taskki 阅读全文
posted @ 2019-05-30 01:06 Matrix锅锅 阅读(185) 评论(0) 推荐(0) 编辑