Commit 6bf08fca by BrianHolsen

modi conf file to use sys evn vars

parent 365dd0d0
...@@ -34,7 +34,9 @@ public class TestController { ...@@ -34,7 +34,9 @@ public class TestController {
@RequestMapping("hi") @RequestMapping("hi")
public String hi() { public String hi() {
return "HI!"; return "host=" + System.getenv("MYSQL_SERVICE_HOST") + "; "
+ "username=" + System.getenv("MYSQL_USERNAME") + "; "
+ "password=" + System.getenv("MYSQL_PASSWORD") + "; ";
} }
@RequestMapping("createTable") @RequestMapping("createTable")
......
jdbc.driver=com.mysql.jdbc.Driver jdbc.driver=com.mysql.jdbc.Driver
jdbc.url=jdbc:mysql://mysql/mysql_database?useUnicode=true&characterEncoding=utf-8&zeroDateTimeBehavior=convertToNull jdbc.url=jdbc:mysql://#{systemEnvironment['MYSQL_SERVICE_HOST']}/mysql_database?useUnicode=true&characterEncoding=utf-8&zeroDateTimeBehavior=convertToNull
jdbc.username=mysql_username jdbc.username=#{systemEnvironment['MYSQL_USERNAME']}
jdbc.password=mysql_password jdbc.password=#{systemEnvironment['MYSQL_PASSWORD']}
#\u521d\u59cb\u5316\u8fde\u63a5 #\u521d\u59cb\u5316\u8fde\u63a5
jdbc.initialSize=10 jdbc.initialSize=10
#\u6700\u5927\u8fde\u63a5\u6570\u91cf\uff0c\u8bbe\u7f6e\u4e3a0\u65f6\uff0c\u8868\u793a\u6ca1\u6709\u9650\u5236 #\u6700\u5927\u8fde\u63a5\u6570\u91cf\uff0c\u8bbe\u7f6e\u4e3a0\u65f6\uff0c\u8868\u793a\u6ca1\u6709\u9650\u5236
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment