Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
A
awa-w5d5-microservices
Project
Project
Details
Activity
Releases
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
StudentAddressDetails
awa-w5d5-microservices
Commits
1dda15ac
Commit
1dda15ac
authored
Apr 05, 2021
by
Xiyang Lu
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
04/05 Joe connect to mysql db
parent
4d4f5d79
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
18 additions
and
11 deletions
+18
-11
build.gradle
student-address-service/build.gradle
+1
-3
application.properties
...address-service/src/main/resources/application.properties
+17
-8
No files found.
student-address-service/build.gradle
View file @
1dda15ac
...
...
@@ -15,10 +15,8 @@ repositories {
dependencies
{
implementation
'org.springframework.boot:spring-boot-starter-web'
implementation
'org.springframework.boot:spring-boot-starter-data-jpa'
runtimeOnly
'mysql:mysql-connector-java'
testImplementation
'org.springframework.boot:spring-boot-starter-test'
runtimeOnly
'com.h2database:h2'
testImplementation
'com.h2database:h2'
}
...
...
student-address-service/src/main/resources/application.properties
View file @
1dda15ac
spring.datasource.url
=
jdbc:h2:mem:dataSource
spring.datasource.driverClassName
=
org.h2.Driver
spring.datasource.username
=
sa
spring.datasource.password
=
spring.datasource.schema
=
classpath:studentaddress.sql
#spring.datasource.url=jdbc:h2:mem:dataSource
#spring.datasource.driverClassName=org.h2.Driver
#spring.datasource.username=sa
#spring.datasource.password=
#spring.datasource.schema=classpath:studentaddress.sql
#
#spring.jpa.database-platform=org.hibernate.dialect.H2Dialect
#spring.jpa.hibernate.ddl-auto=none
#
#spring.h2.console.enabled=true
server.port
=
9090
spring.jpa.database-platform
=
org.hibernate.dialect.H2Dialect
spring.jpa.hibernate.ddl-auto
=
none
spring.datasource.url
=
jdbc:mysql://127.0.0.1:3306/student_address
spring.datasource.username
=
root
spring.datasource.password
=
spring.jpa.properties.hibernate.dialect
=
org.hibernate.dialect.MySQL57Dialect
spring.jpa.generate-ddl
=
false
spring.h2.console.enabled
=
true
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