Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
W
wj-datacenter-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
jinan
wj-datacenter-platform
Commits
8a1624b6
Commit
8a1624b6
authored
Jun 05, 2023
by
yourName
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
完善数据中心框架内容,+数据访问
parent
40015b7b
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
29 additions
and
17 deletions
+29
-17
pom.xml
wj-datacenter-service/pom.xml
+18
-14
DataCeneterApplication.java
...ain/java/net/wanji/datacenter/DataCeneterApplication.java
+10
-2
startServer.sh
wj-datacenter-service/src/main/resources/bin/startServer.sh
+1
-1
No files found.
wj-datacenter-service/pom.xml
View file @
8a1624b6
...
...
@@ -12,7 +12,7 @@
<groupId>
net.wanji
</groupId>
<artifactId>
wj-datacenter-service
</artifactId>
<version>
1.0-SNAPSHOT
</version>
<name>
wj-datacenter-
platform
</name>
<name>
wj-datacenter-
service
</name>
<description>
signal-datacenter-service
</description>
<properties>
...
...
@@ -22,17 +22,6 @@
<dependencies>
<dependency>
<groupId>
com.wanji
</groupId>
<artifactId>
wj-databus
</artifactId>
<version>
1.0
</version>
<exclusions>
<exclusion>
<groupId>
org.springframework.cloud
</groupId>
<artifactId>
spring-cloud-commons
</artifactId>
</exclusion>
</exclusions>
</dependency>
<dependency>
<groupId>
com.wanji
</groupId>
...
...
@@ -120,7 +109,22 @@
<artifactId>
commons-collections
</artifactId>
</dependency>
<!--数据库连接-->
<dependency>
<groupId>
mysql
</groupId>
<artifactId>
mysql-connector-java
</artifactId>
</dependency>
<!--mybatis依赖-->
<dependency>
<groupId>
org.mybatis.spring.boot
</groupId>
<artifactId>
mybatis-spring-boot-starter
</artifactId>
<exclusions>
<exclusion>
<artifactId>
spring-boot-starter-logging
</artifactId>
<groupId>
org.springframework.boot
</groupId>
</exclusion>
</exclusions>
</dependency>
<!--swagger -start-->
<dependency>
<groupId>
io.springfox
</groupId>
...
...
@@ -288,7 +292,7 @@
<!-- <creationTime>2022-10-14T10:08:59.304+08:00</creationTime>-->
<creationTime>
${maven.build.timestamp}
</creationTime>
<mainClass>
com.wanji.nvrplayback.NvrPlayback
Application
</mainClass>
<mainClass>
net.wanji.datacenter.DataCeneter
Application
</mainClass>
</container>
<!--可以进行HTTP-->
<allowInsecureRegistries>
true
</allowInsecureRegistries>
...
...
wj-datacenter-service/src/main/java/net/wanji/datacenter/DataCeneterApplication.java
View file @
8a1624b6
...
...
@@ -2,12 +2,14 @@ package net.wanji.datacenter;
import
com.wanji.common.framework.spring.ServiceBeanContext
;
import
lombok.SneakyThrows
;
import
org.mybatis.spring.annotation.MapperScan
;
import
org.springframework.boot.SpringApplication
;
import
org.springframework.boot.autoconfigure.SpringBootApplication
;
import
org.springframework.boot.autoconfigure.
jdbc.DataSourceAutoConfiguratio
n
;
import
org.springframework.boot.autoconfigure.
domain.EntitySca
n
;
import
org.springframework.boot.autoconfigure.security.servlet.SecurityAutoConfiguration
;
import
org.springframework.cloud.openfeign.FeignAutoConfiguration
;
import
org.springframework.context.ApplicationListener
;
import
org.springframework.context.annotation.ComponentScan
;
import
org.springframework.context.annotation.EnableAspectJAutoProxy
;
import
org.springframework.context.event.ContextRefreshedEvent
;
import
org.springframework.scheduling.annotation.EnableAsync
;
...
...
@@ -18,8 +20,14 @@ import springfox.documentation.swagger2.annotations.EnableSwagger2;
/**
* @author mapabc5
*/
@SpringBootApplication
(
exclude
=
{
FeignAutoConfiguration
.
class
,
DataSourceAutoConfiguration
.
class
,
SecurityAutoConfiguration
.
class
})
@SpringBootApplication
(
exclude
=
{
FeignAutoConfiguration
.
class
,
SecurityAutoConfiguration
.
class
})
@EnableAspectJAutoProxy
(
proxyTargetClass
=
true
)
@ComponentScan
(
basePackages
=
{
"net.wanji.datacenter"
,
"com.wanji.common.utils"
,
"com.wanji.common.tool"
})
@EntityScan
(
basePackages
=
{
"net.wanji.datacenter.entity"
})
@MapperScan
(
basePackages
=
{
"net.wanji.datacenter.mapper"
})
@EnableSwagger2
@EnableTransactionManagement
@EnableScheduling
...
...
wj-datacenter-service/src/main/resources/bin/startServer.sh
View file @
8a1624b6
...
...
@@ -47,4 +47,4 @@ done
export
JAVA_OPTIONS
=
"-Xmx512m -Xms512m -XX:MetaspaceSize=256m"
export
CLASSPATH
=
.:
${
CLASSPATH
}
:
${
DEPLOY_PATH
}
/resources:
${
DEPLOY_PATH
}
/lib/
*
$JAVA_HOME
/bin/java
-cp
${
CLASSPATH
}
:
${
DEPLOY_PATH
}
/lib/wj-datacenter-service-1.0.jar:.
${
JAVA_OPTIONS
}
${
JAVA_DEBUG
}
com.wanji.nvrplayback.
DataCeneterApplication
$prog
&
$JAVA_HOME
/bin/java
-cp
${
CLASSPATH
}
:
${
DEPLOY_PATH
}
/lib/wj-datacenter-service-1.0.jar:.
${
JAVA_OPTIONS
}
${
JAVA_DEBUG
}
DataCeneterApplication
$prog
&
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