spring
浮而不实
这个作者很懒,什么都没留下…
展开
-
使用swigger教程
新建swiggerconfig文件 和springboot启动文件同级包代码如下:package com.ligang.whiteelephant;import io.swagger.annotations.ApiOperation;import org.springframework.context.annotation.Bean;import org.springframework.context.annotation.Configuration;import springfox.docu原创 2021-06-03 21:04:50 · 930 阅读 · 0 评论 -
解决springboot跨域问题
将如下config文件放入工程 就能解决跨域问题package com.ligang.whiteelephant;import org.springframework.context.annotation.Configuration;import org.springframework.web.servlet.config.annotation.CorsRegistry;import org.springframework.web.servlet.config.annotation.WebMvcC原创 2021-06-03 20:46:18 · 51 阅读 · 0 评论 -
SpringBoot 热启动设置(完整-不失效)
SpringBoot热启动配置build.gradle 中如下:dependencies{ //热启动 implementation 'org.springframework.boot:spring-boot-devtools' compile 'org.springframework.boot:spring-boot-devtools' runtimeOnly 'org.springframework.boot:spring-boot-devtools'}File -原创 2021-05-20 23:58:21 · 400 阅读 · 0 评论