pom.xml
<?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
"
>
<parent>
<artifactId>xc
‐
framework
‐
parent</artifactId>
<groupId>com.xuecheng</groupId>
<version>1.0
‐
SNAPSHOT</version>
<relativePath>../xc
‐
framework
‐
parent/pom.xml</relativePath>
</parent>
<modelVersion>4.0.0</modelVersion>
<artifactId>xc
‐
service
‐
manage
‐
cms
‐
client</artifactId>
<dependencies>
<dependency>
<groupId>com.xuecheng</groupId>
<artifactId>xc
‐
framework
‐
model</artifactId>
<version>1.0
‐
SNAPSHOT</version>
</dependency>
<dependency>
<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
‐
amqp</artifactId>
</dependency>
<dependency>
<groupId>org
.springframework.boot</groupId>
<artifactId>spring
‐
boot
‐
starter
‐
data
‐
mongodb</artifactId>
</dependency>
<dependency>
<groupId>org
.apache.commons</groupId>
<artifactId>commons
‐
io</artifactId>
</dependency>
<dependency>
<groupId>com.alibaba</groupId>
<artifactId>fastjson</artifactId>
</dependency>
</dependencies>
</project>
server:
port: 31000
spring:
application:
name: xc
‐
service
‐
manage
‐
cms
‐
client
data:
mongodb:
uri: mongodb://root:123@localhost:27017
database: xc_cms
rabbitmq:
host: 127.0.0.1
port: 5672
username: guest
password: guest
virtualHost: /
xuecheng:
mq:
#cms客户端监控的队列名称(不同的客户端监控的队列不能重复)
queue: queue_cms_postpage_01
routingKey: 5a751fab6abb5044e0d19ea1 #此routingKey为门户站点ID
@SpringBootApplication
@EntityScan(
"
com.xuecheng
.framework.domain.cms
"
)//扫描实体类
@ComponentScan(basePackages
=
{
"
com.xuecheng
.framework
"
})//扫描common下的所有类
@ComponentScan(basePackages
=
{
"
com.xuecheng
.manage_cms_client
"
})
public class ManageCmsClientApplication {
public static void main(String[] args) {
SpringApplication.run(ManageCmsClientApplication.class, args);
}
}
欢迎光临 黑马程序员技术交流社区 (http://bbs.itheima.com/) | 黑马程序员IT技术论坛 X3.2 |