Spring Boot Active Profile: How to configure datasource properties for your test classes

แชร์
ฝัง
  • เผยแพร่เมื่อ 22 ต.ค. 2024

ความคิดเห็น •

  • @StefhaniLGomez
    @StefhaniLGomez 3 ปีที่แล้ว

    Just what I need !! Thank you very helpful! :-)

  • @tiannel6039
    @tiannel6039 ปีที่แล้ว

    Is there a way to isolate a single method? In my case, i want to set a specific method to use another sql file.

  • @MrRomanvideo
    @MrRomanvideo 3 ปีที่แล้ว

    Hi! And what about the case when we deploy our app in Docker in 2 different containers: i.e. App and Postgres. Then we need to assign SQL script not to App profile but to Postgres container. So is there any way to parameterize my containers and to set up profiles for them like we did it inside just only spring app?

  • @yuriihizun7183
    @yuriihizun7183 4 ปีที่แล้ว +1

    Nice work but as for me the better idea is to create application.properties file inside of the test package setting active profile there.

  • @artemgoncharenko646
    @artemgoncharenko646 3 ปีที่แล้ว +1

    wow! The fast forward sound was very unexpected and frightening :)