随笔分类 -  spring boot

摘要:在spring boot的自定义配置类继承 WebMvcConfigurationSupport 后,发现自动配置的静态资源路径(classpath:/META/resources/,classpath:/resources/,classpath:/static/,classpath:/public 阅读全文
posted @ 2018-05-04 10:25 way2a 阅读(28158) 评论(1) 推荐(3)
摘要:首先有个地方要说明一下,要使用到PageHelper插件分页的时候,springboot的版本不能是2.0.0,我试过使用2.0.0的版本,启动报错缺少类 org.springframework.boot.bind.Relaxedpropertyresolver 。当切换到1.5.10版本后启动正常 阅读全文
posted @ 2018-03-26 13:31 way2a 阅读(293) 评论(0) 推荐(0)
摘要:在HTML中用<input id="urlcontext" type="hidden" th:value="@{/}" /> 时会发现得到的链接会是 " /项目名/;jsessionid=xxxxxxxxxxxxxxxxxxxx" 这样的形式,这样再去拼接链接访问就会报错。 在启动类上继承 Spri 阅读全文
posted @ 2018-03-19 12:09 way2a 阅读(9953) 评论(3) 推荐(0)