
java
文章平均质量分 79
瓜皮康
这个作者很懒,什么都没留下…
展开
-
SpringCloud 与 SpringBoot版本对应关系
https://start.spring.io/actuator/info“spring-cloud”: {“Finchley.M2”: “Spring Boot >=2.0.0.M3 and <2.0.0.M5”,“Finchley.M3”: “Spring Boot >=2.0.0.M5 and <=2.0.0.M5”,“Finchley.M4”: “Spring Boot >=2.0.0.M6 and <=2.0.0.M6”,“Finchley.M5”.原创 2020-05-11 09:40:26 · 4352 阅读 · 0 评论 -
SLF4J: Class path contains multiple SLF4J bindings.
遇到一个问题,启动springboot项目时提示SLF4J: Class path contains multiple SLF4J bindings.虽然他不影响项目运行,但是红字的我就是不舒服原因分析:翻译过来就是:类路径包含多个SLF4J绑定。我是在启动之前pom中加入了几个dependency,应该是这些包中有某个也有slf4j,那问题来了怎么确认呢解决方法在打开的页面中command+f(Windows可能是ctrl+f找到slf4j-log4j这里能看到是我心加入的web原创 2020-05-09 10:30:43 · 730 阅读 · 0 评论 -
Swagger常见注解@API、@ApiOperation、@ApiParam等
Swagger2一些常用注解最近遇到了一个使用swagger来生成接口文档的项目,在controller看到了一些没用过的注解(@API、@ApiOperation等),遂记录一下@API使用在类上,表明是swagger资源拥有两个属性:value、tags,源码如下//If tags is not used,this value will be used to set the tag...原创 2020-04-26 14:01:01 · 100836 阅读 · 2 评论