![](https://img-blog.csdnimg.cn/20201014180756925.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
springboot
我有个梦
这个作者很懒,什么都没留下…
展开
-
springboot集成Swagger在线文档
springboot集成Swagger在线文档 @Configuration public class SwaggerConfig implements WebMvcConfigurer { @Bean public Docket createRestApi() { return new Docket(DocumentationType.SWAGGER_2) .apiInfo(apiInfo()) .select() .apis(RequestHandlerSelectors.basePackage(“de原创 2020-11-23 15:11:35 · 74 阅读 · 0 评论 -
在学习springboot时因为用application.yml替换application.properties遇到的坑
错误描述:在学习springboot时因为用application.yml替换application.properties文件,因而导致程序不能正常启动,idea错误描述为:java.lang.IllegalStateException: Attempted to load applicationConfig: [classpath:/application.yml] but snakeyaml ...原创 2019-09-12 00:41:01 · 3104 阅读 · 2 评论 -
学习springboot时使用SpringBootTest遇到的问题
问题描述:使用@SpringBootTest进行项目测试时遇到@SpringBootTest注解下面划红线 如图: 解决方法:在本地maven仓库中删除有关test的一切文件,默认是在C:\Users\Administrator.m2\repository\org\springframework\boot这个目录下,删完之后右键项目,maven->update object。。。问题解决。 ...原创 2019-09-23 16:13:54 · 1826 阅读 · 2 评论