Commit fa24fd29 authored by duanruiming's avatar duanruiming

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

parent 8a198bc3
...@@ -10,12 +10,11 @@ import org.springframework.transaction.annotation.EnableTransactionManagement; ...@@ -10,12 +10,11 @@ import org.springframework.transaction.annotation.EnableTransactionManagement;
/** /**
* @author * @author
*/ */
@SpringBootApplication(scanBasePackages = "net.wanji.web") @SpringBootApplication(scanBasePackages = {"net.wanji.web", "net.wanji.common"})
@MapperScan(basePackages = "net.wanji.web.mapper") @MapperScan(basePackages = "net.wanji.web.mapper")
@EnableTransactionManagement @EnableTransactionManagement
@EnableScheduling @EnableScheduling
@EnableAsync @EnableAsync
//@EnableFeignClients(basePackages = "net.wanji.feign.service")
public class SignalApplication { public class SignalApplication {
public static void main(String[] args) { public static void main(String[] args) {
......
...@@ -55,9 +55,4 @@ spring: ...@@ -55,9 +55,4 @@ spring:
database: 3 database: 3
# 信号平台 # 信号平台
signal: 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: spring:
# dubbo启动需要程序名称
application:
name: web
profiles: profiles:
active: dev active: dev
jackson: 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: utc.service.url=http://10.100.1.59:32000/utc
# service: #utc.service.url=http://localhost:32000/utc
# url: http://10.100.1.59:32000/utc \ No newline at end of file
utc.service.url=http://10.100.1.59:32000/utc
\ No newline at end of file
...@@ -23,7 +23,7 @@ ...@@ -23,7 +23,7 @@
<dependency> <dependency>
<groupId>net.wanji</groupId> <groupId>net.wanji</groupId>
<artifactId>wj-common</artifactId> <artifactId>wj-common</artifactId>
<version>1.0.0</version> <version>0.0.2</version>
</dependency> </dependency>
<dependency> <dependency>
<groupId>org.springframework.boot</groupId> <groupId>org.springframework.boot</groupId>
......
...@@ -26,6 +26,11 @@ ...@@ -26,6 +26,11 @@
</properties> </properties>
<dependencies> <dependencies>
<dependency>
<groupId>net.wanji</groupId>
<artifactId>wj-common</artifactId>
<version>0.0.2</version>
</dependency>
<dependency> <dependency>
<groupId>org.springframework.boot</groupId> <groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-starter-websocket</artifactId> <artifactId>spring-boot-starter-websocket</artifactId>
......
...@@ -10,7 +10,7 @@ import org.springframework.transaction.annotation.EnableTransactionManagement; ...@@ -10,7 +10,7 @@ import org.springframework.transaction.annotation.EnableTransactionManagement;
/** /**
* @date 2022/11/15 8:31 * @date 2022/11/15 8:31
*/ */
@SpringBootApplication(scanBasePackages = "net.wanji.utc") @SpringBootApplication(scanBasePackages = {"net.wanji.utc", "net.wanji.common"})
@EnableTransactionManagement @EnableTransactionManagement
@MapperScan(basePackages = "net.wanji.utc.mapper") @MapperScan(basePackages = "net.wanji.utc.mapper")
@EnableScheduling @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