Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
A
apollo
Project
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
openSource
apollo
Commits
52103c63
Commit
52103c63
authored
May 27, 2016
by
Jason Song
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
support utf8mb4
parent
05281db8
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
25 additions
and
0 deletions
+25
-0
application.properties
apollo-common/src/main/resources/application.properties
+1
-0
datasource.xml
apollo-common/src/main/resources/datasource.xml
+24
-0
No files found.
apollo-common/src/main/resources/application.properties
View file @
52103c63
...
...
@@ -4,6 +4,7 @@ spring.http.converters.preferred-json-mapper=gson
spring.datasource.testWhileIdle
=
true
spring.datasource.testOnBorrow
=
true
spring.datasource.validationQuery
=
SELECT 1
spring.datasource.initSQL
=
set names utf8mb4
# Naming strategy
spring.jpa.hibernate.naming_strategy
=
org.hibernate.cfg.EJB3NamingStrategy
...
...
apollo-common/src/main/resources/datasource.xml
0 → 100644
View file @
52103c63
<!--
for ctrip datasource
-->
<Datasources>
<Datasource
name=
"${pro_titan_dbname}"
testWhileIdle=
"true"
testOnBorrow=
"true"
testOnReturn=
"false"
validationQuery=
"SELECT 1"
initSQL=
"set names utf8mb4"
validationInterval=
"30000"
timeBetweenEvictionRunsMillis=
"5000"
maxActive=
"100"
minIdle=
"10"
maxWait=
"10000"
initialSize=
"10"
removeAbandonedTimeout=
"60"
removeAbandoned=
"true"
logAbandoned=
"false"
minEvictableIdleTimeMillis=
"30000"
option=
"sendStringParametersAsUnicode=false"
/>
</Datasources>
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