SpringBoot
Nemo521echo
这个作者很懒,什么都没留下…
展开
-
SpringBoot中的异常处理
首先自己定义了一个全局的异常处理类@ControllerAdvicepublic class GlobalExceptionHandler { public static final String CONTENT_TYPE_FORMED = "application/x-www-form-urlencoded"; @ExceptionHandler(Exception.clas...原创 2019-12-18 23:19:50 · 218 阅读 · 0 评论 -
boot开启热部署
#springboot开启热部署. 在pom.xml中添加依赖<dependency> <groupId>org.springframework.boot</groupId> <artifactId>spring-boot-devtools</artifactId> ...原创 2019-12-01 18:01:26 · 381 阅读 · 0 评论 -
SpringBoot2新手上路的遇到的坑
修改Servlet容器相关的配置 SpringBoot 2.x以上不支持EmbeddedServletContainerCustomizer 而用 WebServletFactoryCustomizer来代替 /* 修改Servlet容器中的配置 在boot 2以上不支持EmbeddedServletContainerCustomizer 换成了WebServletFacto...原创 2019-11-23 21:46:58 · 126 阅读 · 0 评论 -
SpringBoot的小白之路
<thymeleaf.version>3.0.9.RELEASE</thymeleaf.version> <!‐‐ 布局功能的支持程序 thymeleaf3主程序 layout2以上版本 ‐‐> <!‐‐ thymeleaf2 layout1‐‐> <thymeleaf‐layout‐dialect.version>2.2.2<...原创 2019-11-17 23:28:02 · 98 阅读 · 0 评论