Fork me on Gitee
摘要: Spring Boot 配置拦截器的时候默认 是放行 静态资源 , 也就是说不需要进行配置 registry.addResourceHandler("/**") .addResourceLocations("classpath:/resources") .addResourceLocations(" 阅读全文
posted @ 2019-11-30 21:32 ---dgw博客 阅读(731) 评论(0) 推荐(0) 编辑
摘要: 国际化文件的编写 messages.properties init project 7月前 messages_en_US.properties init project 7月前 messages_zh_CN.properties 页面非连接配置国际化只需要: spring.messages.base 阅读全文
posted @ 2019-11-30 18:21 ---dgw博客 阅读(643) 评论(0) 推荐(0) 编辑
摘要: 通过返回WebMvcConfigurationSupport 的方式, 默认会覆盖 Spring boot的自动配置, 导致配置失效静态资源无法访问:但是在WebMvcConfigurationadpter(已久过时)这是允许的 @Bean public WebMvcConfigurationSup 阅读全文
posted @ 2019-11-30 14:58 ---dgw博客 阅读(4917) 评论(0) 推荐(0) 编辑