04 2018 档案
摘要:1.增加依赖 2.配置类SwaggerConfig.java 3.启动类加 @EnableSwagger2 注解 4.接口类加@Api及接口方法加@ApiOperation注解 5.访问swagger-ui http://localhost:8080/swagger-ui.html (端口是spri
阅读全文
摘要:jar包的application.yml 会被项目的覆盖,导致找不到原有的配置
阅读全文
摘要:今天新建一个maven项目实现接口方法的时候报错编译不通过@Override is not allowed when implement interface method,要配置pom文件的compiler plugin就解决了 附上原链接:https://blog.csdn.net/chengyu
阅读全文
摘要:写在前面 spring-boot 版本:2.0.0.RELEASE 读取自定义配置 1.配置文件:sys.properties 2.配置类:SupplyConfig.java 因为spring-boot使用了2.0.x,所以@ConfigurationProperties 没有locations的属
阅读全文
摘要:jdk版本:1.8.0_162 1.打开IDEA-file-new-project-Spring Initializer,JDK和URL选默认,next (这一步如果是不能联网的话,可以选择直接创建maven项目) 2.project metadata --默认 3.dependencies选 we
阅读全文