Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
A
AmosBankRoot
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
1
Merge Requests
1
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
bank
AmosBankRoot
Commits
781cca45
Commit
781cca45
authored
May 29, 2020
by
xinglei
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
修改项目报错
parent
2b96e258
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
41 additions
and
54 deletions
+41
-54
pom.xml
AmosBankService/pom.xml
+0
-5
ShiduAlarmWebSocketClient.java
...eejoin/amos/bank/webSocket/ShiduAlarmWebSocketClient.java
+0
-1
AmosBankStart.java
...nkStart/src/main/java/com/yeejoin/amos/AmosBankStart.java
+41
-48
No files found.
AmosBankService/pom.xml
View file @
781cca45
...
...
@@ -41,11 +41,6 @@
<artifactId>
amos-component-feign
</artifactId>
<version>
1.1.0-SNAPSHOT
</version>
</dependency>
<dependency>
<groupId>
org.typroject
</groupId>
<artifactId>
tyboot-core-foundation
</artifactId>
<version>
1.1.13-Ty
</version>
</dependency>
<!-- fegion客户端引用end -->
<!-- 安全模块jar
<dependency>
...
...
AmosBankService/src/main/java/com/yeejoin/amos/bank/webSocket/ShiduAlarmWebSocketClient.java
View file @
781cca45
...
...
@@ -250,7 +250,6 @@ public class ShiduAlarmWebSocketClient extends WebSocketClient {
ShiduAlarmWebSocketClient
client
=
new
ShiduAlarmWebSocketClient
(
monitorAlarmWebSocketClientUrl
);
client
.
connect
();
while
(!
client
.
getReadyState
().
equals
(
WebSocket
.
READYSTATE
.
OPEN
))
{
System
.
out
.
println
(
"connecting... shidu Dynamic ring alarm----"
+
client
.
getReadyState
());
}
System
.
out
.
println
(
"build "
+
monitorAlarmWebSocketClientUrl
+
"connected..."
);
...
...
AmosBankStart/src/main/java/com/yeejoin/amos/AmosBankStart.java
View file @
781cca45
...
...
@@ -30,7 +30,6 @@ import com.yeejoin.amos.bank.webSocket.ShiduAlarmWebSocketClient;
import
springfox.documentation.swagger2.annotations.EnableSwagger2
;
/**
*
* <pre>
* 服务启动类
* </pre>
...
...
@@ -52,53 +51,46 @@ import springfox.documentation.swagger2.annotations.EnableSwagger2;
// @EnableApolloConfig
@EnableJpaAuditing
@EnableScheduling
@MapperScan
(
basePackages
=
{
"com.yeejoin.amos.spc.business.dao.mapper"
,
"com.yeejoin.amos.bank.dao.mapper"
})
@ComponentScan
({
"org.typroject"
,
"com.yeejoin.amos"
,
"com.yeejoin.amos.bank"
})
public
class
AmosBankStart
{
@MapperScan
(
basePackages
=
{
"com.yeejoin.amos.spc.business.dao.mapper"
,
"com.yeejoin.amos.bank.dao.mapper"
})
@ComponentScan
({
"org.typroject"
,
"com.yeejoin.amos"
,
"com.yeejoin.amos.bank"
})
public
class
AmosBankStart
{
private
static
final
Logger
log
=
Logger
.
getLogger
(
AmosBankStart
.
class
);
private
static
final
Logger
log
=
Logger
.
getLogger
(
AmosBankStart
.
class
);
/**
* 启动amosop-server
*
* @param args
* @throws IOException
* @throws URISyntaxException
*/
public
static
void
main
(
String
[]
args
)
{
log
.
info
(
"start xian bank Service.........."
);
try
{
SpringApplication
application
=
new
SpringApplication
(
AmosBankStart
.
class
);
ConfigurableApplicationContext
run
=
application
.
run
(
args
);
//websocketClinet 设置application
AlarmWebSocketClient
.
setAllpicationContext
(
run
);
MonitorAlarmWebSocketClient
.
setAllpicationContext
(
run
);
ShiduAlarmWebSocketClient
.
setAllpicationContext
(
run
);
InspectionWebSocketClient
.
setAllpicationContext
(
run
);
FireDetectionWebSocketClient
.
setAllpicationContext
(
run
);
Environment
environment
=
run
.
getEnvironment
();
log
.
info
(
"SwaggerUI: http://localhost:"
+
environment
.
getProperty
(
"server.port"
)
+
"/swagger-ui.html"
);
log
.
info
(
"动环告警websocket监听"
);
MonitorAlarmWebSocketClient
.
synMonitorAlarmPoint
();
log
.
info
(
"湿度告警websocket监听"
);
ShiduAlarmWebSocketClient
.
synMonitorAlarmPoint
();
log
.
info
(
"设备告警websocket监听"
);
AlarmWebSocketClient
.
synAlarmPoint
();
log
.
info
(
"自动巡检websocket监听"
);
InspectionWebSocketClient
.
synInspectionAlarm
();
log
.
info
(
"火探websocket监听"
);
FireDetectionWebSocketClient
.
synFireDetection
();
}
catch
(
Exception
e
)
{
System
.
out
.
println
(
"error xian bank occur when run server! "
+
e
);
}
}
/**
* 启动amosop-server
*
* @param args
* @throws IOException
* @throws URISyntaxException
*/
public
static
void
main
(
String
[]
args
)
{
log
.
info
(
"start xian bank Service.........."
);
try
{
SpringApplication
application
=
new
SpringApplication
(
AmosBankStart
.
class
);
ConfigurableApplicationContext
run
=
application
.
run
(
args
);
//websocketClinet 设置application
AlarmWebSocketClient
.
setAllpicationContext
(
run
);
MonitorAlarmWebSocketClient
.
setAllpicationContext
(
run
);
ShiduAlarmWebSocketClient
.
setAllpicationContext
(
run
);
InspectionWebSocketClient
.
setAllpicationContext
(
run
);
FireDetectionWebSocketClient
.
setAllpicationContext
(
run
);
Environment
environment
=
run
.
getEnvironment
();
log
.
info
(
"SwaggerUI: http://localhost:"
+
environment
.
getProperty
(
"server.port"
)
+
"/swagger-ui.html"
);
log
.
info
(
"动环告警websocket监听"
);
MonitorAlarmWebSocketClient
.
synMonitorAlarmPoint
();
log
.
info
(
"湿度告警websocket监听"
);
ShiduAlarmWebSocketClient
.
synMonitorAlarmPoint
();
log
.
info
(
"设备告警websocket监听"
);
AlarmWebSocketClient
.
synAlarmPoint
();
log
.
info
(
"自动巡检websocket监听"
);
InspectionWebSocketClient
.
synInspectionAlarm
();
log
.
info
(
"火探websocket监听"
);
FireDetectionWebSocketClient
.
synFireDetection
();
}
catch
(
Exception
e
)
{
System
.
out
.
println
(
"error xian bank occur when run server! "
+
e
);
}
}
}
\ No newline at end of file
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