File tree Expand file tree Collapse file tree 2 files changed +8
-1
lines changed Expand file tree Collapse file tree 2 files changed +8
-1
lines changed Original file line number Diff line number Diff line change 1
1
server.port =8080
2
2
spring.application.name =spring-boot-jwt-auth
3
3
4
- spring.datasource.url =jdbc:mysql://localhost:3306/testdb?useSSL=false
4
+ spring.datasource.url =jdbc:mysql://localhost:3306/testdb
5
5
spring.datasource.username =root
6
6
spring.datasource.password =123456
7
7
8
8
spring.jpa.properties.hibernate.dialect =org.hibernate.dialect.MySQL5InnoDBDialect
9
9
spring.jpa.hibernate.ddl-auto =update
10
+ spring.sql.init.mode =always
11
+ spring.sql.init.schema-locations =classpath:init_roles.sql
10
12
11
13
# JWT Properties
12
14
bezkoder.app.jwtSecret =bezKoderSecretKey
Original file line number Diff line number Diff line change
1
+ INSERT INTO roles (name)
2
+ VALUES (' ROLE_USER' ),
3
+ (' ROLE_MODERATOR' ),
4
+ (' ROLE_ADMIN' ) ON DUPLICATE KEY
5
+ UPDATE name = name;
You can’t perform that action at this time.
0 commit comments