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 · 321 阅读 · 0 评论 -
springboot的servlet容器配置及原理
一、嵌入式servlet容器 1.配置 springboot默认使用tomcat来作为嵌入式的servlet容器。 1) 定制和修改servlet容器的配置 ① 修改application.properties文件中和servlet有关的配置(对应org.springframework.boot.autoconfigure.web.ServerProperties【实现了EmbeddedServletContainerCustomizer接口】) server.port=8081 server.原创 2020-09-29 21:44:42 · 1184 阅读 · 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 · 434 阅读 · 0 评论
分享