Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
T
traffic-signal-platform
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
signal
traffic-signal-platform
Commits
fa24fd29
Commit
fa24fd29
authored
Jan 19, 2023
by
duanruiming
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
添加feign多环境配置,添加扫描包配置公用GlobalExceptionHandler
parent
8a198bc3
Changes
9
Hide whitespace changes
Inline
Side-by-side
Showing
9 changed files
with
18 additions
and
14 deletions
+18
-14
SignalApplication.java
...ervice/src/main/java/net/wanji/web/SignalApplication.java
+1
-2
application-dev.yml
...al-control-service/src/main/resources/application-dev.yml
+1
-6
application.yml
signal-control-service/src/main/resources/application.yml
+3
-0
application-dev.properties
...ign-service/src/main/resources/application-dev.properties
+2
-0
application-pro.properties
...ign-service/src/main/resources/application-pro.properties
+2
-0
application.properties
...l-feign-service/src/main/resources/application.properties
+2
-4
pom.xml
signal-optimize-service/pom.xml
+1
-1
pom.xml
signal-utc-service/pom.xml
+5
-0
UtcApplication.java
...c-service/src/main/java/net/wanji/utc/UtcApplication.java
+1
-1
No files found.
signal-control-service/src/main/java/net/wanji/web/SignalApplication.java
View file @
fa24fd29
...
@@ -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
)
{
...
...
signal-control-service/src/main/resources/application-dev.yml
View file @
fa24fd29
...
@@ -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
signal-control-service/src/main/resources/application.yml
View file @
fa24fd29
spring
:
spring
:
# dubbo启动需要程序名称
application
:
name
:
web
profiles
:
profiles
:
active
:
dev
active
:
dev
jackson
:
jackson
:
...
...
signal-feign-service/src/main/resources/application-dev.properties
0 → 100644
View file @
fa24fd29
#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
signal-feign-service/src/main/resources/application-pro.properties
0 → 100644
View file @
fa24fd29
#utc.service.url=http://10.100.1.59:32000/utc
utc.service.url
=
http://localhost:32000/utc
\ No newline at end of file
signal-feign-service/src/main/resources/application.properties
View file @
fa24fd29
#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
signal-optimize-service/pom.xml
View file @
fa24fd29
...
@@ -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>
...
...
signal-utc-service/pom.xml
View file @
fa24fd29
...
@@ -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>
...
...
signal-utc-service/src/main/java/net/wanji/utc/UtcApplication.java
View file @
fa24fd29
...
@@ -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
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment