Commit fa24fd29 authored by duanruiming's avatar duanruiming

添加feign多环境配置,添加扫描包配置公用GlobalExceptionHandler

parent 8a198bc3
......@@ -10,12 +10,11 @@ import org.springframework.transaction.annotation.EnableTransactionManagement;
/**
* @author
*/
@SpringBootApplication(scanBasePackages = "net.wanji.web")
@SpringBootApplication(scanBasePackages = {"net.wanji.web", "net.wanji.common"})
@MapperScan(basePackages = "net.wanji.web.mapper")
@EnableTransactionManagement
@EnableScheduling
@EnableAsync
//@EnableFeignClients(basePackages = "net.wanji.feign.service")
public class SignalApplication {
public static void main(String[] args) {
......
......@@ -56,8 +56,3 @@ spring:
# 信号平台
signal:
\ No newline at end of file
#远程signalUtcService服务地址
utcServiceUrl: http://10.100.1.59:32000/utc
#utcServiceUrl: http://127.0.0.1:32000/utc
syncDeviceSatusUrn: /signalStatus/runningStatusAlarm
\ No newline at end of file
spring:
# dubbo启动需要程序名称
application:
name: web
profiles:
active: dev
jackson:
......
#utc.service.url=http://10.100.1.59:32000/utc
utc.service.url=http://10.100.1.59:32000/utc
\ No newline at end of file
#utc.service.url=http://10.100.1.59:32000/utc
utc.service.url=http://localhost:32000/utc
\ No newline at end of file
#utc:
# service:
# url: http://10.100.1.59:32000/utc
utc.service.url=http://10.100.1.59:32000/utc
#utc.service.url=http://localhost:32000/utc
\ No newline at end of file
......@@ -23,7 +23,7 @@
<dependency>
<groupId>net.wanji</groupId>
<artifactId>wj-common</artifactId>
<version>1.0.0</version>
<version>0.0.2</version>
</dependency>
<dependency>
<groupId>org.springframework.boot</groupId>
......
......@@ -26,6 +26,11 @@
</properties>
<dependencies>
<dependency>
<groupId>net.wanji</groupId>
<artifactId>wj-common</artifactId>
<version>0.0.2</version>
</dependency>
<dependency>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-starter-websocket</artifactId>
......
......@@ -10,7 +10,7 @@ import org.springframework.transaction.annotation.EnableTransactionManagement;
/**
* @date 2022/11/15 8:31
*/
@SpringBootApplication(scanBasePackages = "net.wanji.utc")
@SpringBootApplication(scanBasePackages = {"net.wanji.utc", "net.wanji.common"})
@EnableTransactionManagement
@MapperScan(basePackages = "net.wanji.utc.mapper")
@EnableScheduling
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment