mirror of https://gitee.com/maxjhandsome/pig
【修改】调整认证模块名称
This commit is contained in:
parent
3bdebfdd43
commit
3deeab77c9
|
@ -4,11 +4,11 @@
|
|||
<modelVersion>4.0.0</modelVersion>
|
||||
|
||||
<groupId>com.github.pig</groupId>
|
||||
<artifactId>pig-service-auth</artifactId>
|
||||
<artifactId>pig-auth-service</artifactId>
|
||||
<version>0.0.1-SNAPSHOT</version>
|
||||
<packaging>jar</packaging>
|
||||
|
||||
<name>pig-service-auth</name>
|
||||
<name>pig-auth-service</name>
|
||||
<description>jwt 认证服务</description>
|
||||
|
||||
<parent>
|
||||
|
@ -35,7 +35,6 @@
|
|||
</dependency>
|
||||
</dependencies>
|
||||
|
||||
|
||||
<build>
|
||||
<plugins>
|
||||
<plugin>
|
|
@ -1,6 +1,6 @@
|
|||
spring:
|
||||
application:
|
||||
name: pig-service-auth
|
||||
name: pig-auth-service
|
||||
cloud:
|
||||
config:
|
||||
fail-fast: true
|
|
@ -0,0 +1,38 @@
|
|||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
|
||||
xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
|
||||
<modelVersion>4.0.0</modelVersion>
|
||||
|
||||
<groupId>com.github.pig</groupId>
|
||||
<artifactId>pig-common</artifactId>
|
||||
<version>0.0.1-SNAPSHOT</version>
|
||||
<packaging>jar</packaging>
|
||||
|
||||
<name>pig-common</name>
|
||||
<description>common</description>
|
||||
|
||||
<parent>
|
||||
<groupId>com.github</groupId>
|
||||
<artifactId>pig</artifactId>
|
||||
<version>1.0-SNAPSHOT</version>
|
||||
</parent>
|
||||
|
||||
<dependencies>
|
||||
<dependency>
|
||||
<groupId>io.jsonwebtoken</groupId>
|
||||
<artifactId>jjwt</artifactId>
|
||||
<version>0.7.0</version>
|
||||
</dependency>
|
||||
</dependencies>
|
||||
|
||||
|
||||
<build>
|
||||
<plugins>
|
||||
<plugin>
|
||||
<groupId>org.springframework.boot</groupId>
|
||||
<artifactId>spring-boot-maven-plugin</artifactId>
|
||||
</plugin>
|
||||
</plugins>
|
||||
</build>
|
||||
|
||||
</project>
|
|
@ -0,0 +1,12 @@
|
|||
server:
|
||||
port: 4000
|
||||
spring:
|
||||
application:
|
||||
name: pig-demo-service
|
||||
|
||||
eureka:
|
||||
instance:
|
||||
prefer-ip-address: true
|
||||
client:
|
||||
serviceUrl:
|
||||
defaultZone: http://127.0.0.1:9000/eureka/
|
|
@ -23,6 +23,7 @@
|
|||
<artifactId>pig-common</artifactId>
|
||||
<version>0.0.1-SNAPSHOT</version>
|
||||
</dependency>
|
||||
<!--zuul网关-->
|
||||
<dependency>
|
||||
<groupId>org.springframework.cloud</groupId>
|
||||
<artifactId>spring-cloud-starter-zuul</artifactId>
|
||||
|
@ -37,6 +38,11 @@
|
|||
<groupId>org.springframework.cloud</groupId>
|
||||
<artifactId>spring-cloud-starter-oauth2</artifactId>
|
||||
</dependency>
|
||||
<!--Redis-->
|
||||
<dependency>
|
||||
<groupId>org.springframework.boot</groupId>
|
||||
<artifactId>spring-boot-starter-data-redis</artifactId>
|
||||
</dependency>
|
||||
</dependencies>
|
||||
|
||||
<build>
|
||||
|
|
|
@ -30,6 +30,6 @@ security:
|
|||
oauth2:
|
||||
resource:
|
||||
loadBalanced: true
|
||||
user-info-uri: http://pig-service-auth/user
|
||||
user-info-uri: http://pig-auth-service/user
|
||||
prefer-token-info: false
|
||||
service-id: pig-gateway
|
Loading…
Reference in New Issue