![](https://img-blog.csdnimg.cn/20201014180756916.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
SpringBoot
Up后浪
这个作者很懒,什么都没留下…
展开
-
SpringBoot,前端请求跨域问题整理
配置类(若在网关层配置了CORS,在项目中可以去掉此配置) 配置一 /** * 解决前端:Access-Control-Allow-Origin extends WebMvcConfigurerAdapter OR extends WebMvcConfigurationSupport OR implements WebMvcConfigurer but WebMvcConfigurer...原创 2020-03-06 10:57:29 · 271 阅读 · 0 评论 -
SpringBoot全局时间格式设置
springboot返回到前端时间格式为时间戳 yaml配置文件中新增配置。 spring: jackson: default-property-inclusion: ALWAYS time-zone: GMT+8 date-format: yyyy-MM-dd HH:mm:ss serialization: write-dates-as-timestamps: false 新增配置类。 继承 ...原创 2020-03-06 09:45:32 · 406 阅读 · 0 评论