File tree Expand file tree Collapse file tree
src/main/resources/spring Expand file tree Collapse file tree Original file line number Diff line number Diff line change 1+ database.url =jdbc:postgresql://localhost:5432/topjava
2+ database.username =user
3+ database.password =password
4+ database.init =false
5+ jdbc.initLocation =classpath:db/initDB.sql
6+ jpa.showSql =false
7+ hibernate.format_sql =false
8+ hibernate.use_sql_comments =false
Original file line number Diff line number Diff line change 3434 p : password =" ${database.password}" />
3535 </beans >
3636
37+ <beans profile =" postgres" >
38+ <context : property-placeholder location =" classpath:db/postgres.properties" system-properties-mode =" OVERRIDE" />
39+ </beans >
40+
41+ <beans profile =" vds" >
42+ <context : property-placeholder location =" file:///#{systemEnvironment[TOPJAVA_ROOT]}/config/db.properties" system-properties-mode =" OVERRIDE" />
43+ </beans >
44+
3745 <beans profile =" postgres,vds" >
46+
3847 <!--
3948 For postgres driver logging
4049 It uses java.util.logging and logged via jul-to-slf4j bridge
4453 <property name =" staticMethod" value =" org.slf4j.bridge.SLF4JBridgeHandler.install" />
4554 </bean >
4655
47- <context : property-placeholder location =" classpath:db/postgres.properties" system-properties-mode =" OVERRIDE" />
48-
4956 <bean id =" dataSource"
5057 class =" org.apache.tomcat.jdbc.pool.DataSource"
5158 p : driverClassName =" org.postgresql.Driver"
You can’t perform that action at this time.
0 commit comments