2018年9月30日

Idea单元测试Junit Generator设置

摘要: 0. File | Settings | Other Settings | JUnit Generator 1.junit generator自动生成测试代码缺省和java类在同一包下,不匹配maven项目标准测试目录。 修改Output Path设置为${SOURCEPATH}/../../tes 阅读全文

posted @ 2018-09-30 15:27 乐之者v 阅读(2400) 评论(0) 推荐(0)

SpringBoot @Value读取配置的值

摘要: SpringBoot 读取properties文件/配置中心的属性,可以有以下两种方式: 一、@Value注解 SpringBoot在application.properties文件中,可以自定义属性。 在properties文件中如下示: #自定义属性 mail.fromMail.addr=xx@ 阅读全文

posted @ 2018-09-30 10:50 乐之者v 阅读(2527) 评论(0) 推荐(0)

导航