配置提交

This commit is contained in:
2025-06-20 09:10:53 +08:00
parent f03622ac5b
commit ed54f79983
11 changed files with 39 additions and 19 deletions

View File

@@ -6,12 +6,12 @@ spring:
datasource:
druid:
driver-class-name: com.mysql.cj.jdbc.Driver
url: jdbc:mysql://192.168.1.24:13306/pqs91003?useUnicode=true&characterEncoding=utf-8&useSSL=true&serverTimezone=CTT
url: jdbc:mysql://192.168.1.24:13306/pqs91003?useUnicode=true&characterEncoding=utf-8&useSSL=true&serverTimezone=Asia/Shanghai
#url: jdbc:mysql://localhost:3306/pqs9100?useUnicode=true&characterEncoding=utf-8&useSSL=true&serverTimezone=CTT
username: root
#password: root
password: njcnpqs
# url: jdbc:mysql://localhost:3306/pqs91001?useUnicode=true&characterEncoding=utf-8&useSSL=true&serverTimezone=CTT
# username: root
# password: root
#初始化建立物理连接的个数、最小、最大连接数
initial-size: 5
min-idle: 5
@@ -50,16 +50,12 @@ phaseAngle:
socket:
source:
ip: 192.168.1.138
#ip: localhost
port: 62000
device:
ip: 192.168.1.138
#ip: localhost
port: 61000
# source:
# ip: 192.168.1.121
# port: 10086
# device:
# ip: 192.168.1.121
# port: 61000
webSocket:
port: 7777

View File

@@ -57,7 +57,12 @@
<version>0.0.1</version>
</dependency>
<!--oracle驱动-->
<dependency>
<groupId>com.oracle.database.jdbc</groupId>
<artifactId>ojdbc8</artifactId>
<version>21.6.0.0</version>
</dependency>
</dependencies>

View File

@@ -1,11 +1,13 @@
package com.njcn.gather.event;
import lombok.extern.slf4j.Slf4j;
import org.mybatis.spring.annotation.MapperScan;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
@Slf4j
@SpringBootApplication
@MapperScan("com.njcn.**.mapper")
public class EventSmartApplication {
public static void main(String[] args) {

View File

@@ -1,7 +1,7 @@
package com.njcn.gather.event.mapper;
package com.njcn.gather.event.transientes.mapper;
import com.github.jeffreyning.mybatisplus.base.MppBaseMapper;
import com.njcn.gather.event.pojo.po.PqsEventdetailPO;
import com.njcn.gather.event.transientes.pojo.po.PqsEventdetailPO;
import org.apache.ibatis.annotations.Mapper;
@Mapper

View File

@@ -1,7 +1,7 @@
package com.njcn.gather.event.mapper;
package com.njcn.gather.event.transientes.mapper;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.njcn.gather.event.pojo.po.RmpEventDetailPO;
import com.njcn.gather.event.transientes.pojo.po.RmpEventDetailPO;
import org.apache.ibatis.annotations.Mapper;
@Mapper

View File

@@ -1,4 +1,4 @@
package com.njcn.gather.event.pojo.po;
package com.njcn.gather.event.transientes.pojo.po;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableName;

View File

@@ -1,4 +1,4 @@
package com.njcn.gather.event.pojo.po;
package com.njcn.gather.event.transientes.pojo.po;
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;

View File

@@ -1,4 +1,4 @@
package com.njcn.gather.event.websocket;
package com.njcn.gather.event.transientes.websocket;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;

View File

@@ -1,4 +1,4 @@
package com.njcn.gather.event.websocket;
package com.njcn.gather.event.transientes.websocket;
import lombok.extern.slf4j.Slf4j;

17
pom.xml
View File

@@ -13,6 +13,7 @@
<module>user</module>
<module>detection</module>
<module>storage</module>
<module>event_smart</module>
</modules>
<packaging>pom</packaging>
<name>融合各工具的项目</name>
@@ -29,6 +30,22 @@
</snapshotRepository>
</distributionManagement>
<properties>
<spring-boot.version>2.3.12.RELEASE</spring-boot.version>
</properties>
<dependencyManagement>
<dependencies>
<dependency>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-dependencies</artifactId>
<version>${spring-boot.version}</version>
<type>pom</type>
<scope>import</scope>
</dependency>
</dependencies>
</dependencyManagement>
<build>
<plugins>
<plugin>