![](https://img-blog.csdnimg.cn/20201014180756927.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
springboot
Imcomming
这个作者很懒,什么都没留下…
展开
-
@ConfigurationProperties和@PropertySource
在spring boot(版本1.5.1.RELEASE以上)项目中,@ConfigurationProperties注解已将location属性移除,因此导致无法正常给配置类的属性赋值,所以使用其他的替代途径进行配置。可以使用@ConfigurationProperties和@PropertySource这两个标签配合进行注入配置如下: @Component @ConfigurationProp...原创 2018-11-17 17:23:55 · 471 阅读 · 0 评论 -
@SLF4J无法找到log的解决办法
开发工具:IDEA 使用了@SFL4J注解无法在方法里面获取到log,解决办法如下: File–settings–Plugins中提示如下画面: 点击Browse repositories, 此处因为已经安装过,所以在右侧的红框中显示的是Restart…,正常情况应该显示如下: 安装完成需要重启IDEA。 另:如果安装失败,提示如下内容: Plugin Lombok Plugin was n...原创 2018-12-02 23:09:34 · 10305 阅读 · 0 评论