![](https://img-blog.csdnimg.cn/20201014180756918.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
springboot
清晨细雨~
这个作者很懒,什么都没留下…
展开
-
spring security oauth2
1. 授权码登录 oauth_client_details autoapprove false 则提示授权原创 2021-05-11 10:46:35 · 68 阅读 · 0 评论 -
springboot 参数乱码/数据库乱码
1.需要设置编码格式 import org.springframework.context.annotation.Bean; import org.springframework.context.annotation.Configuration; import org.springframework.http.converter.HttpMessageConverter; import org.springframework.http.converter.StringHttpMessageConvert原创 2020-09-29 08:18:57 · 233 阅读 · 0 评论 -
springboot 2.X 解决跨域
在Spring Boot 2.X应用程序中可以使用注解@CrossOrigin,也可以通过使用WebMvcConfigurer对象来定义全局CORS配置。 1.@CrossOrigin注解示例代码 import org.springframework.web.bind.annotation.CrossOrigin; import org.springframework.web.bind.annotation.RequestMapping; import org.springframework.web.原创 2020-07-01 10:53:50 · 317 阅读 · 0 评论