Spring Boot with Two MVC Configurations

后端 未结 4 1797
名媛妹妹
名媛妹妹 2020-12-24 08:13

I have a Spring Boot app with a REST API, using Jackson for the JSON view configuration. It works great and I can get all the Spring Boot goodness.

However, I need t

4条回答
  •  生来不讨喜
    2020-12-24 08:39

    In Spring-boot ypu can use different profiles (like dev and test).

    Start application with -Dspring.profiles.active=dev or -Dspring.profiles.active=test and use different properties files named application-dev.properties or application-test.properties inside your properties directory. That could do the problem.

提交回复
热议问题