- 博客(2)
- 收藏
- 关注
原创 在spring-boot中使用@ConfigurationProperties注解
在spring-boot中使用@ConfigurationProperties注解今天发现了一个比较好用的注解,@ConfigurationProperties。如图所示,假设我需要从配置中心获取email.username的值,我可以通过@Value来注入。但是如果当我有很多个类似email.sendtime,email.userid这样的值,我就要重复很多次@Value操作。在这种情况时...
2019-12-20 13:59:44
181
原创 解决IDEA报错:Disconnected from the target VM, address: '127.0.0.1:52315', transport: 'socket'
IDEA的maven项目报错:Disconnected from the target VM, address: ‘127.0.0.1:52315’, transport: ‘socket’解决方法:1.端口冲突,找到端口冲突的程序结束掉它,或者重启电脑。2.有可能是你debug时启动类错误,找到启动类选择debug启动。...
2019-10-14 10:48:47
120300
5
空空如也
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人