Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
P
paas-test
Overview
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Java-于龙
paas-test
Commits
6bf08fca
Commit
6bf08fca
authored
Aug 03, 2017
by
BrianHolsen
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
modi conf file to use sys evn vars
parent
365dd0d0
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
6 additions
and
4 deletions
+6
-4
TestController.java
src/main/java/com/bbdtek/test/controller/TestController.java
+3
-1
jdbc.properties
src/main/resources/jdbc/jdbc.properties
+3
-3
No files found.
src/main/java/com/bbdtek/test/controller/TestController.java
View file @
6bf08fca
...
...
@@ -34,7 +34,9 @@ public class TestController {
@RequestMapping
(
"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"
)
...
...
src/main/resources/jdbc/jdbc.properties
View file @
6bf08fca
jdbc.driver
=
com.mysql.jdbc.Driver
jdbc.url
=
jdbc:mysql://
mysql
/mysql_database?useUnicode=true&characterEncoding=utf-8&zeroDateTimeBehavior=convertToNull
jdbc.username
=
mysql_username
jdbc.password
=
mysql_password
jdbc.url
=
jdbc:mysql://
#{systemEnvironment['MYSQL_SERVICE_HOST']}
/mysql_database?useUnicode=true&characterEncoding=utf-8&zeroDateTimeBehavior=convertToNull
jdbc.username
=
#{systemEnvironment['MYSQL_USERNAME']}
jdbc.password=
#{systemEnvironment['MYSQL_PASSWORD']}
#\u521d\u59cb\u5316\u8fde\u63a5
jdbc.initialSize
=
10
#\u6700\u5927\u8fde\u63a5\u6570\u91cf\uff0c\u8bbe\u7f6e\u4e3a0\u65f6\uff0c\u8868\u793a\u6ca1\u6709\u9650\u5236
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment