build: 调整结构和配置
parent
e883b98d25
commit
9dfedec2f4
@ -1,4 +1,4 @@
|
||||
package com.xydl.demo;
|
||||
package com.xydl.cac;
|
||||
|
||||
|
||||
import org.springframework.boot.SpringApplication;
|
@ -1,4 +1,4 @@
|
||||
package com.xydl.demo.controller;
|
||||
package com.xydl.cac.controller;
|
||||
|
||||
import lombok.extern.slf4j.Slf4j;
|
||||
|
@ -1,4 +1,4 @@
|
||||
package com.xydl.demo.entity;
|
||||
package com.xydl.cac.entity;
|
||||
|
||||
import io.swagger.annotations.ApiModel;
|
||||
import lombok.AllArgsConstructor;
|
@ -1,7 +1,6 @@
|
||||
package com.xydl.demo.entity;
|
||||
package com.xydl.cac.entity;
|
||||
|
||||
import io.swagger.annotations.ApiModel;
|
||||
import io.swagger.annotations.ApiModelProperty;
|
||||
import lombok.AllArgsConstructor;
|
||||
import lombok.Builder;
|
||||
import lombok.Data;
|
@ -1,4 +1,4 @@
|
||||
package com.xydl.demo.model;
|
||||
package com.xydl.cac.model;
|
||||
|
||||
import com.fasterxml.jackson.annotation.JsonInclude;
|
||||
import lombok.Data;
|
@ -1,6 +1,6 @@
|
||||
package com.xydl.demo.model;
|
||||
package com.xydl.cac.model;
|
||||
|
||||
import com.xydl.demo.entity.NiecPoint;
|
||||
import com.xydl.cac.entity.NiecPoint;
|
||||
import io.swagger.annotations.ApiModelProperty;
|
||||
import lombok.Data;
|
||||
|
@ -1,6 +1,6 @@
|
||||
package com.xydl.demo.repository;
|
||||
package com.xydl.cac.repository;
|
||||
|
||||
import com.xydl.demo.entity.NiecPoint;
|
||||
import com.xydl.cac.entity.NiecPoint;
|
||||
import org.springframework.data.jpa.repository.JpaRepository;
|
||||
import org.springframework.data.jpa.repository.JpaSpecificationExecutor;
|
||||
import org.springframework.stereotype.Repository;
|
@ -1,6 +1,6 @@
|
||||
package com.xydl.demo.repository;
|
||||
package com.xydl.cac.repository;
|
||||
|
||||
import com.xydl.demo.entity.NiecSensor;
|
||||
import com.xydl.cac.entity.NiecSensor;
|
||||
import org.springframework.data.domain.Page;
|
||||
import org.springframework.data.domain.Pageable;
|
||||
import org.springframework.data.jpa.repository.JpaRepository;
|
@ -1,6 +1,6 @@
|
||||
package com.xydl.demo.service;
|
||||
package com.xydl.cac.service;
|
||||
|
||||
import com.xydl.demo.entity.NiecPoint;
|
||||
import com.xydl.cac.entity.NiecPoint;
|
||||
|
||||
import java.util.List;
|
||||
|
@ -1,8 +1,8 @@
|
||||
package com.xydl.demo.service;
|
||||
package com.xydl.cac.service;
|
||||
|
||||
import com.xydl.demo.entity.NiecSensor;
|
||||
import com.xydl.demo.model.ConditionModel;
|
||||
import com.xydl.demo.model.SensorDetail;
|
||||
import com.xydl.cac.entity.NiecSensor;
|
||||
import com.xydl.cac.model.ConditionModel;
|
||||
import com.xydl.cac.model.SensorDetail;
|
||||
import org.springframework.data.domain.Page;
|
||||
|
||||
import java.util.List;
|
@ -1,14 +1,13 @@
|
||||
package com.xydl.demo.service.impl;
|
||||
|
||||
import com.xydl.demo.entity.NiecPoint;
|
||||
import com.xydl.demo.entity.NiecSensor;
|
||||
import com.xydl.demo.model.ConditionModel;
|
||||
import com.xydl.demo.model.SensorDetail;
|
||||
import com.xydl.demo.repository.NiecSensorRepository;
|
||||
import com.xydl.demo.service.NiecPointService;
|
||||
import com.xydl.demo.service.NiecSensorService;
|
||||
import com.xydl.demo.service.impl.NiecPointServiceImpl;
|
||||
import com.xydl.demo.util.DateUtil;
|
||||
package com.xydl.cac.service.impl;
|
||||
|
||||
import com.xydl.cac.entity.NiecPoint;
|
||||
import com.xydl.cac.entity.NiecSensor;
|
||||
import com.xydl.cac.model.ConditionModel;
|
||||
import com.xydl.cac.model.SensorDetail;
|
||||
import com.xydl.cac.repository.NiecSensorRepository;
|
||||
import com.xydl.cac.service.NiecPointService;
|
||||
import com.xydl.cac.service.NiecSensorService;
|
||||
import com.xydl.cac.util.DateUtil;
|
||||
import lombok.extern.slf4j.Slf4j;
|
||||
import org.apache.commons.lang3.StringUtils;
|
||||
import org.springframework.data.domain.Page;
|
@ -1,4 +1,4 @@
|
||||
package com.xydl.demo.util;
|
||||
package com.xydl.cac.util;
|
||||
|
||||
import java.text.ParseException;
|
||||
import java.text.SimpleDateFormat;
|
@ -0,0 +1,39 @@
|
||||
server:
|
||||
port: 8099
|
||||
servlet:
|
||||
context-path: /
|
||||
|
||||
spring:
|
||||
jackson:
|
||||
date-format: yyyy-MM-dd HH:mm:ss
|
||||
time-zone: GMT+8
|
||||
datasource:
|
||||
driver-class-name: com.mysql.cj.jdbc.Driver
|
||||
url: jdbc:mysql://192.168.50.200:3306/iec104?charset=utf-8&useSSL=false&serverTimezone=Asia/Shanghai&connectTimeout=60000&socketTimeout=60000
|
||||
username: root
|
||||
password: 123456
|
||||
jpa:
|
||||
show-sql: true
|
||||
mvc:
|
||||
format:
|
||||
date: yyyy-MM-dd HH:mm:ss
|
||||
pathmatch:
|
||||
matching-strategy: ant_path_matcher
|
||||
|
||||
logging:
|
||||
level:
|
||||
root: info
|
||||
com:
|
||||
xydl:
|
||||
controller:
|
||||
TestControler: info
|
||||
service:
|
||||
impl: debug
|
||||
schedule: info
|
||||
file:
|
||||
name: /root/log/mqtt.log
|
||||
|
||||
|
||||
|
||||
|
||||
|
@ -0,0 +1,39 @@
|
||||
server:
|
||||
port: 8099
|
||||
servlet:
|
||||
context-path: /
|
||||
|
||||
spring:
|
||||
jackson:
|
||||
date-format: yyyy-MM-dd HH:mm:ss
|
||||
time-zone: GMT+8
|
||||
datasource:
|
||||
driver-class-name: com.mysql.cj.jdbc.Driver
|
||||
url: jdbc:mysql://127.0.0.1:3306/iec104?charset=utf-8&useSSL=false&serverTimezone=Asia/Shanghai&connectTimeout=60000&socketTimeout=60000
|
||||
username: iec
|
||||
password: Iec@1043
|
||||
jpa:
|
||||
show-sql: true
|
||||
mvc:
|
||||
format:
|
||||
date: yyyy-MM-dd HH:mm:ss
|
||||
pathmatch:
|
||||
matching-strategy: ant_path_matcher
|
||||
|
||||
logging:
|
||||
level:
|
||||
root: info
|
||||
com:
|
||||
xydl:
|
||||
controller:
|
||||
TestControler: info
|
||||
service:
|
||||
impl: debug
|
||||
schedule: info
|
||||
file:
|
||||
name: /home/xydl/ncac/logs/ncac.log
|
||||
|
||||
|
||||
|
||||
|
||||
|
@ -1,22 +1,3 @@
|
||||
server:
|
||||
port: 8099
|
||||
servlet:
|
||||
context-path: /
|
||||
|
||||
spring:
|
||||
jackson:
|
||||
date-format: yyyy-MM-dd HH:mm:ss
|
||||
time-zone: GMT+8
|
||||
datasource:
|
||||
driver-class-name: com.mysql.cj.jdbc.Driver
|
||||
url: jdbc:mysql://127.0.0.1:3306/iec104?charset=utf-8&useSSL=false&serverTimezone=Asia/Shanghai
|
||||
# url: jdbc:mysql://192.168.50.200:3306/iec104?charset=utf-8&useSSL=false&serverTimezone=Asia/Shanghai
|
||||
username: root
|
||||
password: 123456
|
||||
jpa:
|
||||
show-sql: true
|
||||
mvc:
|
||||
format:
|
||||
date: yyyy-MM-dd HH:mm:ss
|
||||
pathmatch:
|
||||
matching-strategy: ant_path_matcher
|
||||
profiles:
|
||||
active: prod
|
Loading…
Reference in New Issue