SpringBoot
沉默-不需要解释
献给支持我的家人
展开
专栏收录文章
- 默认排序
- 最新发布
- 最早发布
- 最多阅读
- 最少阅读
-
springboot vue nginx 发布设置说明
本文主要介绍 单机版相关配置,不涉及到跨域和集群相关配置NGINX 配置下载什么的 自己去找VUE :不用配置什么,直接打包就行了只要把打好的资源问题 直接放到NGINX 就行了其他不用做什么内容springboot配置文件中这边访问路劲要注意和NGINX 配合上的就能正常访问...原创 2021-03-01 08:42:38 · 176 阅读 · 0 评论 -
springboot-springsecurity-跨域问题处理
第一步:springsecurity 配置类中实现 httpSecurity.cors().and() // CRSF禁用,因为不使用session .csrf().disable()第二步:WebMvcConfigurationSupport 中处理跨域路径@Configurationpublic class CustomizeWebMvcConfigurationSupport extends WebMvcConfigu原创 2021-02-02 14:10:07 · 669 阅读 · 1 评论 -
springboot--FastJson 使用并重现实现LocalDateTime 实现解析
遇到的问题:添加FastJson 配置后不起效果springboot 任然使用原来的JSON 解析器第一步:需要添加FastJson 依赖 <!-- 阿里JSON解析器 --> <dependency> <groupId>com.alibaba</groupId> <artifactId>fastjson</artifactId>原创 2021-02-02 14:02:06 · 1785 阅读 · 0 评论 -
springboot--静态资源访问配置
目前springboot中默认的静态资源的路径:目前就是以上4个目录是springBoot默认的路径第一步:第二步,编写启动类@SpringBootApplicationpublic class AppMain { public static void main(String[] args) { SpringApplication.run(AppMain.cl...原创 2020-03-27 10:31:11 · 268 阅读 · 0 评论 -
SpringBoot---添加自定义拦截器
添加自定义拦截器第一步:编写一个自定义的拦截器public class MyHandlerInterceptor implements HandlerInterceptor { private final Logger logger = LoggerFactory.getLogger(MyWebMvcConfigurer.class); @Override publ...原创 2020-03-04 10:11:35 · 263 阅读 · 0 评论 -
SpringBoot--支持freemarker
springBoot 已经不建议使用JSP,当然目前很多应用已经是前后台完全分离了,如果需要在web工程中使用前台相关页面可以使用以下方式:第一步:添加依赖<dependency> <groupId>org.springframework.boot</groupId> <artifactId>spring-boot-starter...原创 2020-03-03 17:16:13 · 400 阅读 · 0 评论 -
springboot-访问路径强制使用后缀
springboot 版本号:2.2.5.RELEASE对一步:添加后缀匹配规则 /** * 设置匹配后缀请求规则 * @param dispatcherServlet * @return */ @Bean public ServletRegistrationBean servletRegistrationBean(DispatcherS...原创 2020-03-03 15:10:43 · 3276 阅读 · 2 评论
分享