energy-biz-anomaly和energy-biz-appraise服务改造
This commit is contained in:
parent
807070f777
commit
3216a7ec45
|
|
@ -17,7 +17,6 @@
|
|||
package org.springenergy.bizAppraise.vo;
|
||||
|
||||
import org.springenergy.bizAppraise.entity.BizAppraisePlanEntity;
|
||||
import org.springenergy.core.tool.node.INode;
|
||||
import lombok.Data;
|
||||
import lombok.EqualsAndHashCode;
|
||||
|
||||
|
|
@ -30,6 +29,6 @@ import lombok.EqualsAndHashCode;
|
|||
@Data
|
||||
@EqualsAndHashCode(callSuper = true)
|
||||
public class BizAppraisePlanVO extends BizAppraisePlanEntity {
|
||||
private static final long serialVersionUID = 1L;
|
||||
private static final long serialVersionUID = 1L;
|
||||
|
||||
}
|
||||
|
|
|
|||
|
|
@ -14,6 +14,24 @@
|
|||
<packaging>jar</packaging>
|
||||
|
||||
<dependencies>
|
||||
<dependency>
|
||||
<groupId>org.springframework.cloud</groupId>
|
||||
<artifactId>spring-cloud-starter-bootstrap</artifactId>
|
||||
</dependency>
|
||||
<dependency>
|
||||
<groupId>com.alibaba.cloud</groupId>
|
||||
<artifactId>spring-cloud-starter-alibaba-nacos-config</artifactId>
|
||||
<version>2021.0.5.0</version>
|
||||
</dependency>
|
||||
<dependency>
|
||||
<groupId>com.alibaba.cloud</groupId>
|
||||
<artifactId>spring-cloud-starter-alibaba-nacos-discovery</artifactId>
|
||||
<version>2021.0.5.0</version>
|
||||
</dependency>
|
||||
<dependency>
|
||||
<groupId>org.springenergy</groupId>
|
||||
<artifactId>energy-framework-compat</artifactId>
|
||||
</dependency>
|
||||
<dependency>
|
||||
<groupId>org.springframework.boot</groupId>
|
||||
<artifactId>spring-boot-starter</artifactId>
|
||||
|
|
@ -24,17 +42,14 @@
|
|||
</dependency>
|
||||
<dependency>
|
||||
<groupId>com.github.xiaoymin</groupId>
|
||||
<artifactId>knife4j-spring-boot-starter</artifactId>
|
||||
<artifactId>knife4j-annotations</artifactId>
|
||||
<version>${knife4j.version}</version>
|
||||
</dependency>
|
||||
<dependency>
|
||||
<groupId>org.springenergy</groupId>
|
||||
<artifactId>energy-biz-anomaly-api</artifactId>
|
||||
<version>1.0.0</version>
|
||||
</dependency>
|
||||
<dependency>
|
||||
<groupId>org.springenergy</groupId>
|
||||
<artifactId>energy-user-api</artifactId>
|
||||
</dependency>
|
||||
<dependency>
|
||||
<groupId>org.springframework.boot</groupId>
|
||||
<artifactId>spring-boot-configuration-processor</artifactId>
|
||||
|
|
|
|||
|
|
@ -16,8 +16,11 @@
|
|||
*/
|
||||
package org.springenergy.bizAnomalyInfo;
|
||||
|
||||
import org.springframework.boot.autoconfigure.SpringBootApplication;
|
||||
import org.mybatis.spring.annotation.MapperScan;
|
||||
import org.springframework.boot.SpringApplication;
|
||||
import org.springframework.boot.autoconfigure.SpringBootApplication;
|
||||
import org.springframework.cloud.client.discovery.EnableDiscoveryClient;
|
||||
import org.springframework.cloud.openfeign.EnableFeignClients;
|
||||
|
||||
/**
|
||||
* Desk启动器
|
||||
|
|
@ -25,11 +28,14 @@ import org.springframework.boot.SpringApplication;
|
|||
* @author Chill
|
||||
*/
|
||||
@SpringBootApplication
|
||||
@EnableDiscoveryClient
|
||||
@EnableFeignClients(basePackages = "org.springenergy")
|
||||
@MapperScan("org.springenergy.bizAnomalyInfo.mapper")
|
||||
public class BizAnomalyApplication {
|
||||
|
||||
public static void main(String[] args) {
|
||||
SpringApplication.run(BizAnomalyApplication.class, args);
|
||||
}
|
||||
public static void main(String[] args) {
|
||||
SpringApplication.run(BizAnomalyApplication.class, args);
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
|
|
|
|||
|
|
@ -4,8 +4,20 @@ server:
|
|||
|
||||
#数据源配置
|
||||
spring:
|
||||
application:
|
||||
name: energy-biz-anomaly
|
||||
mvc:
|
||||
pathmatch:
|
||||
matching-strategy: ant_path_matcher
|
||||
datasource:
|
||||
url: ${energy.datasource.dev.url}
|
||||
username: ${energy.datasource.dev.username}
|
||||
password: ${energy.datasource.dev.password}
|
||||
dynamic:
|
||||
enabled: false
|
||||
driver-class-name: oracle.jdbc.OracleDriver
|
||||
url: ${ENERGY_DATASOURCE_DEV_URL:${energy.datasource.dev.url:jdbc:oracle:thin:@//192.168.1.102:1521/ORCLPDB}}
|
||||
username: ${ENERGY_DATASOURCE_DEV_USERNAME:${energy.datasource.dev.username:ENERGYX}}
|
||||
password: ${ENERGY_DATASOURCE_DEV_PASSWORD:${energy.datasource.dev.password:}}
|
||||
|
||||
springfox:
|
||||
documentation:
|
||||
enabled: false
|
||||
|
||||
|
|
|
|||
|
|
@ -0,0 +1,21 @@
|
|||
spring:
|
||||
application:
|
||||
name: energy-biz-anomaly
|
||||
profiles:
|
||||
active: ${SPRING_PROFILES_ACTIVE:dev}
|
||||
cloud:
|
||||
nacos:
|
||||
username: ${NACOS_USERNAME:nacos}
|
||||
password: ${NACOS_PASSWORD:nacos}
|
||||
discovery:
|
||||
server-addr: ${NACOS_ADDR:localhost:8848}
|
||||
config:
|
||||
server-addr: ${NACOS_ADDR:localhost:8848}
|
||||
file-extension: yaml
|
||||
shared-configs:
|
||||
- data-id: energy.yaml
|
||||
group: DEFAULT_GROUP
|
||||
refresh: true
|
||||
- data-id: energy-${spring.profiles.active}.yaml
|
||||
group: DEFAULT_GROUP
|
||||
refresh: true
|
||||
|
|
@ -14,6 +14,24 @@
|
|||
<packaging>jar</packaging>
|
||||
|
||||
<dependencies>
|
||||
<dependency>
|
||||
<groupId>org.springframework.cloud</groupId>
|
||||
<artifactId>spring-cloud-starter-bootstrap</artifactId>
|
||||
</dependency>
|
||||
<dependency>
|
||||
<groupId>com.alibaba.cloud</groupId>
|
||||
<artifactId>spring-cloud-starter-alibaba-nacos-config</artifactId>
|
||||
<version>2021.0.5.0</version>
|
||||
</dependency>
|
||||
<dependency>
|
||||
<groupId>com.alibaba.cloud</groupId>
|
||||
<artifactId>spring-cloud-starter-alibaba-nacos-discovery</artifactId>
|
||||
<version>2021.0.5.0</version>
|
||||
</dependency>
|
||||
<dependency>
|
||||
<groupId>org.springenergy</groupId>
|
||||
<artifactId>energy-framework-compat</artifactId>
|
||||
</dependency>
|
||||
<dependency>
|
||||
<groupId>org.springframework.boot</groupId>
|
||||
<artifactId>spring-boot-starter</artifactId>
|
||||
|
|
@ -24,17 +42,14 @@
|
|||
</dependency>
|
||||
<dependency>
|
||||
<groupId>com.github.xiaoymin</groupId>
|
||||
<artifactId>knife4j-spring-boot-starter</artifactId>
|
||||
<artifactId>knife4j-annotations</artifactId>
|
||||
<version>${knife4j.version}</version>
|
||||
</dependency>
|
||||
<dependency>
|
||||
<groupId>org.springenergy</groupId>
|
||||
<artifactId>energy-biz-appraise-api</artifactId>
|
||||
<version>1.0.0</version>
|
||||
</dependency>
|
||||
<dependency>
|
||||
<groupId>org.springenergy</groupId>
|
||||
<artifactId>energy-user-api</artifactId>
|
||||
</dependency>
|
||||
<dependency>
|
||||
<groupId>org.springframework.boot</groupId>
|
||||
<artifactId>spring-boot-configuration-processor</artifactId>
|
||||
|
|
|
|||
|
|
@ -16,8 +16,11 @@
|
|||
*/
|
||||
package org.springenergy.bizAppraise;
|
||||
|
||||
import org.springframework.boot.autoconfigure.SpringBootApplication;
|
||||
import org.mybatis.spring.annotation.MapperScan;
|
||||
import org.springframework.boot.SpringApplication;
|
||||
import org.springframework.boot.autoconfigure.SpringBootApplication;
|
||||
import org.springframework.cloud.client.discovery.EnableDiscoveryClient;
|
||||
import org.springframework.cloud.openfeign.EnableFeignClients;
|
||||
|
||||
/**
|
||||
* Desk启动器
|
||||
|
|
@ -25,11 +28,14 @@ import org.springframework.boot.SpringApplication;
|
|||
* @author Chill
|
||||
*/
|
||||
@SpringBootApplication
|
||||
@EnableDiscoveryClient
|
||||
@EnableFeignClients(basePackages = "org.springenergy")
|
||||
@MapperScan("org.springenergy.bizAppraise.mapper")
|
||||
public class BizAppraiseApplication {
|
||||
|
||||
public static void main(String[] args) {
|
||||
SpringApplication.run(BizAppraiseApplication.class, args);
|
||||
}
|
||||
public static void main(String[] args) {
|
||||
SpringApplication.run(BizAppraiseApplication.class, args);
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
|
|
|
|||
|
|
@ -4,8 +4,20 @@ server:
|
|||
|
||||
#数据源配置
|
||||
spring:
|
||||
application:
|
||||
name: energy-biz-appraise
|
||||
mvc:
|
||||
pathmatch:
|
||||
matching-strategy: ant_path_matcher
|
||||
datasource:
|
||||
url: ${energy.datasource.dev.url}
|
||||
username: ${energy.datasource.dev.username}
|
||||
password: ${energy.datasource.dev.password}
|
||||
dynamic:
|
||||
enabled: false
|
||||
driver-class-name: oracle.jdbc.OracleDriver
|
||||
url: ${ENERGY_DATASOURCE_DEV_URL:${energy.datasource.dev.url:jdbc:oracle:thin:@//192.168.1.102:1521/ORCLPDB}}
|
||||
username: ${ENERGY_DATASOURCE_DEV_USERNAME:${energy.datasource.dev.username:ENERGYX}}
|
||||
password: ${ENERGY_DATASOURCE_DEV_PASSWORD:${energy.datasource.dev.password:}}
|
||||
|
||||
springfox:
|
||||
documentation:
|
||||
enabled: false
|
||||
|
||||
|
|
|
|||
|
|
@ -0,0 +1,21 @@
|
|||
spring:
|
||||
application:
|
||||
name: energy-biz-appraise
|
||||
profiles:
|
||||
active: ${SPRING_PROFILES_ACTIVE:dev}
|
||||
cloud:
|
||||
nacos:
|
||||
username: ${NACOS_USERNAME:nacos}
|
||||
password: ${NACOS_PASSWORD:nacos}
|
||||
discovery:
|
||||
server-addr: ${NACOS_ADDR:localhost:8848}
|
||||
config:
|
||||
server-addr: ${NACOS_ADDR:localhost:8848}
|
||||
file-extension: yaml
|
||||
shared-configs:
|
||||
- data-id: energy.yaml
|
||||
group: DEFAULT_GROUP
|
||||
refresh: true
|
||||
- data-id: energy-${spring.profiles.active}.yaml
|
||||
group: DEFAULT_GROUP
|
||||
refresh: true
|
||||
Loading…
Reference in New Issue