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