完善项目架构
This commit is contained in:
parent
fa704f6171
commit
99c4491335
|
|
@ -20,10 +20,10 @@ spring:
|
|||
locator:
|
||||
enabled: true
|
||||
routes:
|
||||
- id: tao_oms_route
|
||||
uri: lb://tao-oms
|
||||
- id: tao_api_route
|
||||
uri: lb://tao-api
|
||||
predicates:
|
||||
- Path=/api/tao-service/**
|
||||
- Path=/api/tao-api/**
|
||||
filters:
|
||||
- StripPrefix=2
|
||||
- id: oms_api_route
|
||||
|
|
|
|||
3
pom.xml
3
pom.xml
|
|
@ -10,9 +10,8 @@
|
|||
<name>qihang-oms</name>
|
||||
<url>http://maven.apache.org</url>
|
||||
<modules>
|
||||
<module>tao-oms</module>
|
||||
<module>tao-api</module>
|
||||
<module>oms-api</module>
|
||||
<module>oms-core</module>
|
||||
<module>api</module>
|
||||
</modules>
|
||||
|
||||
|
|
|
|||
|
|
@ -9,10 +9,10 @@
|
|||
<relativePath/>
|
||||
</parent>
|
||||
|
||||
<artifactId>tao-oms</artifactId>
|
||||
<artifactId>tao-api</artifactId>
|
||||
<packaging>jar</packaging>
|
||||
|
||||
<name>tao-oms</name>
|
||||
<name>tao-api</name>
|
||||
<url>http://maven.apache.org</url>
|
||||
|
||||
<properties>
|
||||
|
|
@ -13,11 +13,11 @@ import org.springframework.cloud.client.discovery.EnableDiscoveryClient;
|
|||
//@EnableWebSecurity
|
||||
@EnableDiscoveryClient
|
||||
@SpringBootApplication(exclude = { DataSourceAutoConfiguration.class })
|
||||
public class TaoOmsApplication
|
||||
public class TaoApi
|
||||
{
|
||||
public static void main( String[] args )
|
||||
{
|
||||
System.out.println( "Hello World!" );
|
||||
SpringApplication.run(TaoOmsApplication.class, args);
|
||||
SpringApplication.run(TaoApi.class, args);
|
||||
}
|
||||
}
|
||||
|
|
@ -8,7 +8,7 @@ spring:
|
|||
import:
|
||||
- nacos:qihang-oms.yaml?refresh=true
|
||||
application:
|
||||
name: tao-oms
|
||||
name: tao-api
|
||||
security:
|
||||
user:
|
||||
name: admin
|
||||
Loading…
Reference in New Issue