![](https://img-blog.csdnimg.cn/20190918140053667.png?x-oss-process=image/resize,m_fixed,h_224,w_224)
spring
spring相关
geshengbin
这个作者很懒,什么都没留下…
展开
-
跨站请求伪造相关内容(摘自Spring Security 5.0.6.RELEASE手册)
跨站请求伪造相关内容摘自Spring Security手册19. Cross Site Request Forgery (CSRF)This section discusses Spring Security’s Cross Site Request Forgery (CSRF) support.19.1 CSRF AttacksBefore we discuss how Spring Security can protect applications from CSRF att翻译 2020-07-02 15:22:16 · 326 阅读 · 0 评论 -
后台手动渲染Thymeleaf模板,然后返回HTML给前端
后台手动渲染Thymeleaf模板,然后返回HTML给前端public class MyController { @Autowired private ThymeleafViewResolver thymeleafViewResolver; @Autowired private ObjectMapper objectMapper; @GetMapping(value = "/html", produces = {MediaType.TEXT_HTML_VALUE原创 2020-07-01 17:35:30 · 1134 阅读 · 0 评论 -
配置swagger,让其支持spring Pageable接口作为ApiModel
配置swagger,让其支持spring Pageable接口作为ApiModeljava配置import org.springframework.data.domain.Pageable;@Configuration@EnableSwagger2public class SwaggerConfig { @Bean public Docket docket(){ return new Docket(DocumentationType.SWAGGER_2).apiIn原创 2020-07-01 17:33:37 · 648 阅读 · 0 评论 -
配置h2内存数据库,支持geometry空间数据类型
配置h2内存数据库,支持geometry数据类型pom.xml <repositories> <repository> <id>osgeo</id> <name>OSGeo Release Repository</name> <url>https://repo.osgeo.org/repository/release/<原创 2020-07-01 17:32:18 · 1029 阅读 · 0 评论