Browse Source

新建digital-twin-display模块

zhongwei
段飞宇 1 year ago
parent
commit
e390be16e2
  1. 20
      hzims-service/digital-twin-display/pom.xml
  2. 36
      hzims-service/digital-twin-display/src/main/java/com/hnac/hzims/twindisplay/DigitalTwinDisplayApplication.java
  3. 1
      hzims-service/pom.xml

20
hzims-service/digital-twin-display/pom.xml

@ -0,0 +1,20 @@
<?xml version="1.0" encoding="UTF-8"?>
<project xmlns="http://maven.apache.org/POM/4.0.0"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
<modelVersion>4.0.0</modelVersion>
<parent>
<groupId>com.hnac.hzims</groupId>
<artifactId>hzims-service</artifactId>
<version>4.0.0-SNAPSHOT</version>
</parent>
<artifactId>digital-twin-display</artifactId>
<properties>
<maven.compiler.source>8</maven.compiler.source>
<maven.compiler.target>8</maven.compiler.target>
<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
</properties>
</project>

36
hzims-service/digital-twin-display/src/main/java/com/hnac/hzims/twindisplay/DigitalTwinDisplayApplication.java

@ -0,0 +1,36 @@
package com.hnac.hzims.twindisplay;
import org.mybatis.spring.annotation.MapperScan;
import org.springblade.core.cloud.feign.EnableBladeFeign;
import org.springblade.core.launch.BladeApplication;
import org.springframework.boot.builder.SpringApplicationBuilder;
import org.springframework.boot.web.servlet.support.SpringBootServletInitializer;
import org.springframework.cloud.client.SpringCloudApplication;
import org.springframework.context.annotation.ComponentScan;
import org.springframework.scheduling.annotation.EnableScheduling;
/**
* @Author WL
* @Version v1.0
* @Serial 1.0
* @Date 2023/8/25 8:24
*/
//数据孪生展示服务
@EnableBladeFeign(basePackages = {"org.springblade","com.hnac"})
@SpringCloudApplication
@MapperScan("com.hnac.hzims.**.mapper.**")
@EnableScheduling
@ComponentScan(basePackages = {"com.hnac.hzims.*"})
public class DigitalTwinDisplayApplication extends SpringBootServletInitializer {
public final static String APP_NAME = "digital-twin-display";
public static void main(String[] args) {
// System.setProperty("nacos.standalone", "true");
BladeApplication.run(APP_NAME, DigitalTwinDisplayApplication.class, args);
}
@Override
protected SpringApplicationBuilder configure(SpringApplicationBuilder builder) {
return BladeApplication.createSpringApplicationBuilder(builder, APP_NAME, DigitalTwinDisplayApplication.class);
}
}

1
hzims-service/pom.xml

@ -28,6 +28,7 @@
<module>hzims-middle</module> <module>hzims-middle</module>
<module>hzims-scheduled</module> <module>hzims-scheduled</module>
<module>base-info</module> <module>base-info</module>
<module>digital-twin-display</module>
</modules> </modules>
<dependencies> <dependencies>

Loading…
Cancel
Save