注意 spring boot 版本2.3.1.RELEASE
4.0.0 org.springframework.boot spring-boot-starter-parent2.3.1.RELEASE com.example demo0.0.1-SNAPSHOT demo Demo project for Spring Boot 1.8 org.springframework.boot spring-boot-starter-weborg.springframework.cloud spring-cloud-starter-oauth22.2.5.RELEASE org.springframework.boot spring-boot-starter-security2.5.6 org.springframework.boot spring-boot-starter-jdbc2.5.6 org.apache.tomcat tomcat-jdbccom.zaxxer HikariCP4.0.3 mysql mysql-connector-java8.0.20 io.springfox springfox-boot-starter3.0.0 com.github.xiaoymin knife4j-spring-boot-starter3.0.3 org.springframework.boot spring-boot-starter-testtest org.springframework.boot spring-boot-maven-pluginorg.projectlombok lombok
server:
port: 8888
spring:
application:
name: doaredo-oauth
datasource:
type: com.zaxxer.hikari.HikariDataSource
driver-class-name: com.mysql.cj.jdbc.Driver
url: jdbc:mysql://81.68.111.114:3306/doaredo?serverTimezone=UTC&useUnicode=true&characterEncoding-utf8
username: admin123
password: 89j&ad#110
hikari:
minimum-idle: 5
idle-timeout: 60000
maximum-pool-size: 10
auto-commit: true
pool-name: MyHikariCP
max-lifetime: 1
connection-timeout: 30000
connection-test-query: SELECT 1
mybatis-plus:
mapper-locations: classpath:/mapper/**.xml
启动:
登陆成功:



