【修改】调整认证模块名称

This commit is contained in:
wangiegie@gmail.com 2017-10-28 18:29:48 +08:00
parent 3bdebfdd43
commit 3deeab77c9
11 changed files with 61 additions and 6 deletions

View File

@ -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>

View File

@ -1,6 +1,6 @@
spring:
application:
name: pig-service-auth
name: pig-auth-service
cloud:
config:
fail-fast: true

38
pig-common/pom.xml Normal file
View File

@ -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>

View File

@ -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/

View File

@ -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>

View File

@ -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

View File

@ -48,7 +48,7 @@
<module>pig-eureka</module>
<module>pig-config</module>
<module>pig-gateway</module>
<module>pig-service-auth</module>
<module>pig-auth-service</module>
<module>pig-demo-service</module>
</modules>