权限图:
pom.xml
xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
4.0.0
com.server
authority
0.0.1-SNAPSHOT
jar
authority
authority project for Spring Boot
org.springframework.boot
spring-boot-starter-parent
1.5.6.RELEASE
UTF-8
UTF-8
1.8
Camden.SR6
com.server
beans
1.0-SNAPSHOT
org.springframework.cloud
spring-cloud-starter-config
org.springframework.boot
spring-boot-starter-security
org.springframework.cloud
spring-cloud-starter-eureka
org.springframework.boot
spring-boot-starter-websocket
org.springframework.boot
spring-boot-devtools
true
org.springframework.cloud
spring-cloud-starter-feign
org.springframework.boot
spring-boot-starter-actuator
org.springframework.cloud
spring-cloud-starter-eureka-server
org.springframework.boot
spring-boot-starter-test
test
mysql
mysql-connector-java
8.0.11
org.springframework.boot
spring-boot-starter-data-jpa
org.springframework.cloud
spring-cloud-dependencies
${spring-cloud.version}
pom
import
org.springframework.boot
spring-boot-maven-plugin
配置文件application.properties
eureka.client.serviceUrl.defaultZone=http://system:123456@localhost:8081/eureka
eureka.instance.prefer-ip-address=true
spring.application.name=AUS
server.port=8767
security.basic.enabled=false
#security.user.name=system
#security.user.password=123456
spring.datasource.url=jdbc:mysql://localhost:3306/dbauth?characterEncoding=utf8&serverTimezone=GMT%2B8&useSSL=false
spring.datasource.username=root
#root,root
spring.datasource.password=root
spring.datasource.driver-class-name=com.mysql.cj.jdbc.Driver
spring.jpa.properties.hibernate.hbm2ddl.auto=update
#create-drop
spring.jpa.show-sql=true
启动类
@SpringBootApplication
@EnableEurekaClient
public class AuthorityApplication {
public static void main(String[] args) {
SpringApplication.run(AuthorityApplication.class, args);
}
}
然后没有了