![](https://img-blog.csdnimg.cn/20201014180756780.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
springboot
shyc126
这个作者很懒,什么都没留下…
展开
-
springboot thymeleaf-extras-springsecurity sec:authorize 标签使用无效
问题描述:Spring Security,在页面文件中增加sec标签来进行权限等控制。如:sec:authorize="isAuthenticated().在IDEA中页面输入sec:后无提示,手工输入后运行标签无效。环境构成:Spring Boot 1.5.12.RELEASE Spring Security 4.2.5.RELEASE Thymeleaf 3.0.10.RELEASE 怀疑版本不匹配造成,进入https://github.com/thymeleaf/thyme原创 2020-10-09 20:11:04 · 260 阅读 · 0 评论 -
springboot的servlet容器配置及原理
一、嵌入式servlet容器1.配置springboot默认使用tomcat来作为嵌入式的servlet容器。1) 定制和修改servlet容器的配置① 修改application.properties文件中和servlet有关的配置(对应org.springframework.boot.autoconfigure.web.ServerProperties【实现了EmbeddedServletContainerCustomizer接口】)server.port=8081server.原创 2020-09-29 21:44:42 · 982 阅读 · 1 评论 -
springboot中日期格式转换问题
表单中有日期输入提交后报错查看源码类org.springframework.boot.autoconfigure.web.WebMvcAutoConfiguration中application.properties文件中没有显示指定spring.mvc.date-format的值,使用的默认值。在org.springframework.web.servlet.DispatcherServlet类中的doDispatch方法打上断点追踪,最后在org.springframework原创 2020-09-22 21:30:32 · 336 阅读 · 0 评论