Spring datasource configuration for localhost, development, and production
问题 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, and the production server. So far I have 3 properties files called localhost.datasource.properties development.datasource.properties production.datasource.properties I have them conifgured like this: <?xml version="1.0" encoding="UTF-8"?> <beans xmlns="http://www.springframework.org/schema/beans" xmlns:xsi="http://www.w3