Spring datasource configuration for localhost, development, and production

前端 未结 6 924
暖寄归人
暖寄归人 2021-02-02 00:53

I\'m trying to figure out how my Spring app can determine where it is deployed and load the appropriate datasource. We have 3 environments...my local, the development server, a

6条回答
  •  名媛妹妹
    2021-02-02 01:16

    Have a look here: http://blog.jayway.com/2010/10/21/environment-specific-configuration-of-spring-applications/ You can have a default config in your app, and optionally override it with a file in a predefined place on your file system.

提交回复
热议问题