<profiles> <profile> <id>development</id> <activation> <activeByDefault>true</activeByDefault> </activation> <properties> <db.name>es</db.name> <connection.driver_class>com.mysql.jdbc.Driver</connection.driver_class> <connection.admin.url> <![CDATA[jdbc:mysql://localhost:3306?autoReconnect=true&useUnicode=true&characterEncoding=utf-8]]> </connection.admin.url> <connection.url> <![CDATA[jdbc:mysql://localhost:3306/${db.name}?autoReconnect=true&useUnicode=true&characterEncoding=utf-8]]> </connection.url> <connection.username>root</connection.username> <connection.password>root</connection.password> <jpa.showSql>true</jpa.showSql> <jpa.generateDdl>false</jpa.generateDdl> <jpa.database>MYSQL</jpa.database> <jpa.databasePlatform>org.hibernate.dialect.MySQL5InnoDBDialect</jpa.databasePlatform> <log.dir>D:/Backup/es</log.dir> <shiro.uid.cookie.domain></shiro.uid.cookie.domain> <shiro.uid.cookie.path>/</shiro.uid.cookie.path> </properties> </profile> <profile> <!-- integration test --> <id>it</id> <properties> <db.name>es</db.name> <connection.driver_class>com.mysql.jdbc.Driver</connection.driver_class> <connection.admin.url> <![CDATA[jdbc:mysql://localhost:3306?autoReconnect=true&useUnicode=true&characterEncoding=utf-8]]> </connection.admin.url> <connection.url> <![CDATA[jdbc:mysql://localhost:3306/${db.name}?autoReconnect=true&useUnicode=true&characterEncoding=utf-8]]> </connection.url> <connection.username>root</connection.username> <connection.password>root</connection.password> <jpa.showSql>false</jpa.showSql> <jpa.generateDdl>false</jpa.generateDdl> <jpa.database>MYSQL</jpa.database> <jpa.databasePlatform>org.hibernate.dialect.MySQL5InnoDBDialect</jpa.databasePlatform> <log.dir>D:/Backup/es</log.dir> <shiro.uid.cookie.domain></shiro.uid.cookie.domain> <shiro.uid.cookie.path>/</shiro.uid.cookie.path> </properties> </profile> <profile> <!--正式环境--> <id>production</id> <properties> <db.name>es</db.name> <connection.driver_class>com.mysql.jdbc.Driver</connection.driver_class> <connection.admin.url> <![CDATA[jdbc:mysql://localhost:3306?autoReconnect=true&useUnicode=true&characterEncoding=utf-8]]> </connection.admin.url> <connection.url> <![CDATA[jdbc:mysql://localhost:3306/${db.name}?autoReconnect=true&useUnicode=true&characterEncoding=utf-8]]> </connection.url> <connection.username>root</connection.username> <connection.password>root</connection.password> <jpa.showSql>false</jpa.showSql> <jpa.generateDdl>false</jpa.generateDdl> <jpa.database>MYSQL</jpa.database> <jpa.databasePlatform>org.hibernate.dialect.MySQL5InnoDBDialect</jpa.databasePlatform> <log.dir>/data/backup/es</log.dir> <shiro.uid.cookie.domain>sishuok.com</shiro.uid.cookie.domain> <shiro.uid.cookie.path>/</shiro.uid.cookie.path> </properties> </profile> </profiles>
maven profiles
猜你喜欢
转载自zhangxulin061100.iteye.com/blog/2114208
今日推荐
周排行