Commit b04eadb0 by ypenglv

修改配置

1 parent c7cae427
...@@ -21,11 +21,6 @@ ...@@ -21,11 +21,6 @@
</properties> </properties>
<dependencies> <dependencies>
<dependency>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-starter-test</artifactId>
<scope>test</scope>
</dependency>
<!--集成SpringBoot Admin监控--> <!--集成SpringBoot Admin监控-->
<!-- https://mvnrepository.com/artifact/de.codecentric/spring-boot-admin-starter-server --> <!-- https://mvnrepository.com/artifact/de.codecentric/spring-boot-admin-starter-server -->
<dependency> <dependency>
...@@ -53,6 +48,7 @@ ...@@ -53,6 +48,7 @@
<dependency> <dependency>
<groupId>org.springframework.cloud</groupId> <groupId>org.springframework.cloud</groupId>
<artifactId>spring-cloud-starter-zipkin</artifactId> <artifactId>spring-cloud-starter-zipkin</artifactId>
<version>2.2.4.RELEASE</version>
</dependency> </dependency>
</dependencies> </dependencies>
<dependencyManagement> <dependencyManagement>
...@@ -71,6 +67,16 @@ ...@@ -71,6 +67,16 @@
<plugin> <plugin>
<groupId>org.springframework.boot</groupId> <groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-maven-plugin</artifactId> <artifactId>spring-boot-maven-plugin</artifactId>
<configuration>
<includeSystemScope>true</includeSystemScope>
</configuration>
<executions>
<execution>
<goals>
<goal>repackage</goal>
</goals>
</execution>
</executions>
</plugin> </plugin>
</plugins> </plugins>
</build> </build>
......
package org.nafmii.admin;
import org.junit.jupiter.api.Test;
import org.springframework.boot.test.context.SpringBootTest;
@SpringBootTest
class NafmiiAdminApplicationTests {
@Test
void contextLoads() {
}
}
...@@ -22,11 +22,6 @@ ...@@ -22,11 +22,6 @@
<dependencies> <dependencies>
<dependency> <dependency>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-starter-test</artifactId>
<scope>test</scope>
</dependency>
<dependency>
<groupId>org.nafmii</groupId> <groupId>org.nafmii</groupId>
<artifactId>nafmii-common</artifactId> <artifactId>nafmii-common</artifactId>
<version>0.0.1-SNAPSHOT</version> <version>0.0.1-SNAPSHOT</version>
...@@ -46,6 +41,7 @@ ...@@ -46,6 +41,7 @@
<dependency> <dependency>
<groupId>org.springframework.cloud</groupId> <groupId>org.springframework.cloud</groupId>
<artifactId>spring-cloud-starter-zipkin</artifactId> <artifactId>spring-cloud-starter-zipkin</artifactId>
<version>2.2.4.RELEASE</version>
</dependency> </dependency>
</dependencies> </dependencies>
<dependencyManagement> <dependencyManagement>
...@@ -65,13 +61,15 @@ ...@@ -65,13 +61,15 @@
<groupId>org.springframework.boot</groupId> <groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-maven-plugin</artifactId> <artifactId>spring-boot-maven-plugin</artifactId>
<configuration> <configuration>
<excludes> <includeSystemScope>true</includeSystemScope>
<exclude>
<groupId>org.projectlombok</groupId>
<artifactId>lombok</artifactId>
</exclude>
</excludes>
</configuration> </configuration>
<executions>
<execution>
<goals>
<goal>repackage</goal>
</goals>
</execution>
</executions>
</plugin> </plugin>
</plugins> </plugins>
</build> </build>
......
package org.nafmii;
import org.junit.jupiter.api.Test;
import org.springframework.boot.test.context.SpringBootTest;
@SpringBootTest
class NafmiiAppApplicationTests {
@Test
void contextLoads() {
}
}
...@@ -21,12 +21,6 @@ ...@@ -21,12 +21,6 @@
<groupId>org.springframework.cloud</groupId> <groupId>org.springframework.cloud</groupId>
<artifactId>spring-cloud-starter-netflix-eureka-server</artifactId> <artifactId>spring-cloud-starter-netflix-eureka-server</artifactId>
</dependency> </dependency>
<dependency>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-starter-test</artifactId>
<scope>test</scope>
</dependency>
</dependencies> </dependencies>
<dependencyManagement> <dependencyManagement>
<dependencies> <dependencies>
......
package org.nafmii.nafmiieu;
import org.junit.jupiter.api.Test;
import org.springframework.boot.test.context.SpringBootTest;
@SpringBootTest
class NafmiiEuApplicationTests {
@Test
void contextLoads() {
}
}
...@@ -41,12 +41,12 @@ public class AccessFilter implements GlobalFilter, Ordered { ...@@ -41,12 +41,12 @@ public class AccessFilter implements GlobalFilter, Ordered {
String skip2 ="/nafmii-app/v2/api-docs"; String skip2 ="/nafmii-app/v2/api-docs";
String skip3 ="/nafmii-admin/v2/api-docs"; String skip3 ="/nafmii-admin/v2/api-docs";
//跳过不需要验证的url //跳过不需要验证的url
if (antPathMatcher.match(skip0, url) if (antPathMatcher.match(skip0, url)
||antPathMatcher.match(skip1,url) ||antPathMatcher.match(skip1,url)
||antPathMatcher.match(skip2,url) ||antPathMatcher.match(skip2,url)
||antPathMatcher.match(skip3,url) ){ ||antPathMatcher.match(skip3,url) ){
return chain.filter(exchange); return chain.filter(exchange);
} }
//获取token //获取token
String token = exchange.getRequest().getHeaders().getFirst(JwtUtils.TOKEN_HEADER); String token = exchange.getRequest().getHeaders().getFirst(JwtUtils.TOKEN_HEADER);
......
...@@ -22,11 +22,6 @@ ...@@ -22,11 +22,6 @@
<artifactId>spring-boot-starter-web</artifactId> <artifactId>spring-boot-starter-web</artifactId>
</dependency> </dependency>
<dependency> <dependency>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-starter-test</artifactId>
<scope>test</scope>
</dependency>
<dependency>
<groupId>org.nafmii</groupId> <groupId>org.nafmii</groupId>
<artifactId>nafmii-common</artifactId> <artifactId>nafmii-common</artifactId>
<version>0.0.1-SNAPSHOT</version> <version>0.0.1-SNAPSHOT</version>
......
package org.nafmii.nafmiimbg;
import org.junit.jupiter.api.Test;
import org.springframework.boot.test.context.SpringBootTest;
@SpringBootTest
class NafmiiMbgApplicationTests {
@Test
void contextLoads() {
}
}
...@@ -20,11 +20,6 @@ ...@@ -20,11 +20,6 @@
<dependency> <dependency>
<groupId>org.springframework.boot</groupId> <groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-starter-test</artifactId>
<scope>test</scope>
</dependency>
<dependency>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-starter-jdbc</artifactId> <artifactId>spring-boot-starter-jdbc</artifactId>
</dependency> </dependency>
<!--quartz定时调度依赖--> <!--quartz定时调度依赖-->
......
package org.nafmii.nafmiiquartz;
import org.junit.jupiter.api.Test;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.beans.factory.annotation.Qualifier;
import org.springframework.boot.test.context.SpringBootTest;
import org.springframework.jdbc.core.JdbcTemplate;
@SpringBootTest
class NafmiiQuartzApplicationTests {
@Test
void contextLoads() {
}
}
...@@ -25,7 +25,6 @@ ...@@ -25,7 +25,6 @@
<module>nafmii-quartz</module> <module>nafmii-quartz</module>
<module>nafmii-app</module> <module>nafmii-app</module>
<module>nafmii-mbg</module> <module>nafmii-mbg</module>
<module>nafmii-zipkin</module>
</modules> </modules>
</project> </project>
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!