在pom.xml文件中需要修改的节点
1 23 4 19dev 56 8true 79 18org.apache.tomcat.jdbc.pool.DataSource 10jdbc:mysql://47.103.144.156:3306/mgudb 11root 12root123456 13com.mysql.jdbc.Driver 14select 1 15true 16true 1720 32dat 2122 31org.apache.tomcat.jdbc.pool.DataSource 23jdbc:mysql://47.103.144.156:3306/mgudat 24root 25root123456 26com.mysql.jdbc.Driver 27select 1 28true 29true 3033 45uat 3435 44org.apache.tomcat.jdbc.pool.DataSource 36jdbc:mysql://47.103.153.87:33306/mgudb 37sinosoft 38Xay4EyHJyeY+n7IzNc7D 39com.mysql.jdbc.Driver 40select 1 41true 42true 43
其中关键节点名称设置:
true
这样就会默认连接dev数据库。