Spring in the properties of the application

Spring in the properties of the application

Example:
Version 1. In each jar package Maven pom.xml is disposed inside the introduction, I had used the following lines.
Here Insert Picture Description

In each jar using sub packet pom.xml introduced through the inside:
Here Insert Picture Description

The introduction of property profiles of each subproject spring-config.xml inside
Here Insert Picture Description
and jdbc.properties the contents as follows:
db.driver=com.mysql.cj.jdbc.Driverdb.reader.url=jdbc:mysql://192.168.0.251:3306/bonade_center?useUnicode=true&characterEncoding=utf8&zeroDateTimeBehavior=convertToNull&allowMultiQueries=true&serverTimezone=PRC&useSSL=falsedb.reader.username=rootdb.reader.password=sOGhhAUYuM7=db.writer.url=jdbc:mysql://192.168.0.251:3306/bonade_center?useUnicode=true&characterEncoding=utf8&zeroDateTimeBehavior=convertToNull&allowMultiQueries=true&serverTimezone=PRC&useSSL=falsedb.writer.username=rootdb.writer.password=sOGhhAUYuM7=db.initialSize=20db.maxActive=40db.maxIdle=20db.minIdle=1db.maxWait=60000db.timeBetweenEvictionRunsMillis=3000db.minEvictableIdleTimeMillis=300000db.maxPoolPreparedStatementPerConnectionSize=20druid.filters=

The content dataSource.xml which configuration is:
Write-only database connection

Configuration mybatis.xml inside is:
spring and MyBatis seamlessly integrated configuration mapping files do not need to mybatis DAO interface where the package name, Spring will automatically find their next class <tx: annotation-driven transaction-manager = "transactionManager" proxy-target-class = "true" / >

Datasource link here is datasource.xml in configuration, and datasource.xml where the
Here Insert Picture Descriptionlink is
Here Insert Picture Descriptionrather db.driver jdbc.properties file is configured.
Here Insert Picture Description

PS:
Here Insert Picture DescriptionHere Insert Picture DescriptionHere Insert Picture Description

Guess you like

Origin blog.csdn.net/weixin_40821669/article/details/88420372