3 changed files with 57 additions and 0 deletions
			
			
		@ -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> | 
				
			||||||
@ -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); | 
				
			||||||
 | 
					    } | 
				
			||||||
 | 
					} | 
				
			||||||
					Loading…
					
					
				
		Reference in new issue