修改了maven依赖文件,修改了配置文件,将原来的postgresql配置修改为MySQL配置相关信息
This commit is contained in:
		
							
								
								
									
										4
									
								
								pom.xml
									
									
									
									
									
								
							
							
						
						
									
										4
									
								
								pom.xml
									
									
									
									
									
								
							| @@ -102,6 +102,10 @@ | ||||
|             <groupId> mysql</groupId> | ||||
|             <artifactId> mysql-connector-java</artifactId> | ||||
|         </dependency> | ||||
|         <dependency> | ||||
|             <groupId>org.springframework.boot</groupId> | ||||
|             <artifactId>spring-boot-starter-jdbc</artifactId> | ||||
|         </dependency> | ||||
|         <dependency> | ||||
|             <groupId>io.jsonwebtoken</groupId> | ||||
|             <artifactId>jjwt-api</artifactId> | ||||
|   | ||||
| @@ -1,15 +1,15 @@ | ||||
| server.port = 6809 | ||||
|  | ||||
| ## 数据源配置 | ||||
| #spring.datasource.url = jdbc:postgresql://118.24.27.47:5432/fire_point | ||||
| #spring.datasource.userName = fire_manage | ||||
| #spring.datasource.password = fire456 | ||||
| #spring.datasource.driverClassName = org.postgresql.Driver | ||||
| spring.datasource.url = jdbc:mysql://rm-bp160630z03x880745o.mysql.rds.aliyuncs.com:3306/leyibo_business?useSSL=false&useUnicode=true&characterEncoding=utf-8&autoReconnect=true&serverTimezone=Asia/Shanghai | ||||
| spring.datasource.userName = lybsql | ||||
| spring.datasource.password = Lyb_abc_123 | ||||
| spring.datasource.driverClassName = com.mysql.cj.jdbc.Driver | ||||
|  | ||||
| spring.datasource.url = jdbc:postgresql://localhost:5432/shopping | ||||
| spring.datasource.userName = postgres | ||||
| spring.datasource.password = 123456 | ||||
| spring.datasource.driverClassName = org.postgresql.Driver | ||||
| #spring.datasource.url = jdbc:postgresql://localhost:5432/shopping | ||||
| #spring.datasource.userName = postgres | ||||
| #spring.datasource.password = 123456 | ||||
| #spring.datasource.driverClassName = org.postgresql.Driver | ||||
|  | ||||
| server.tomcat.uri-encoding=UTF-8 | ||||
|  | ||||
| @@ -27,8 +27,8 @@ spring.datasource.hikari.minimum-idle = 5 | ||||
| spring.datasource.hikari.validation-timeout = 3000 | ||||
|  | ||||
| ## Spring Data JPA 配置 | ||||
| spring.jpa.database = POSTGRESQL | ||||
| spring.jpa.database-platform = org.hibernate.dialect.PostgreSQLDialect | ||||
| spring.jpa.database = mysql | ||||
| spring.jpa.database-platform = org.hibernate.dialect.MySQL5Dialect | ||||
| spring.jpa.show-sql = true | ||||
| # 指定 ddl mode (none, validate, create, create-drop, update) | ||||
| spring.jpa.hibernate.ddl-auto = update | ||||
|   | ||||
		Reference in New Issue
	
	Block a user