@TestPropertySource doesn't work for JUnit test with AnnotationConfigContextLoader in Spring 1.2.6

后端 未结 7 2022
无人及你
无人及你 2020-12-01 10:34

It doesn\'t seem that anything I do in Spring 4.1.17 with Spring Boot 1.2.6.RELEASE works at all. I just want to access the application properties and override them with te

相关标签:
7条回答
  • 2020-12-01 11:24

    For Me @TestPropertySource("classpath:xxxxxxxx.properties") worked

    0 讨论(0)
提交回复
热议问题