Spring datasource configuration for localhost, development, and production

前端 未结 6 920
暖寄归人
暖寄归人 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:37

    I would consider using the Cocoon Spring Configurator, which can be used stand-alone, without the rest of the Cocoon project:

    http://cocoon.apache.org/subprojects/configuration/spring-configurator/index.html

    I found this blog post really useful to get started:

    http://mrhaki.blogspot.com/2009/02/use-spring-configurator-to-support.html

提交回复
热议问题