You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
34 lines
1.2 KiB
34 lines
1.2 KiB
10 months ago
|
package com.hnac.hzims;
|
||
1 year ago
|
|
||
11 months ago
|
import com.hnac.hzims.alarm.config.constants.AlarmConstants;
|
||
1 year ago
|
import org.mybatis.spring.annotation.MapperScan;
|
||
1 year ago
|
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 javax.annotation.Resource;
|
||
|
|
||
|
/**
|
||
|
* @author ysj
|
||
|
*/
|
||
|
@EnableBladeFeign
|
||
|
@SpringCloudApplication
|
||
1 year ago
|
@MapperScan("com.hnac.hzims.**.mapper.**")
|
||
10 months ago
|
@ComponentScan(basePackages = {"com.hnac.hzims.alarm.*","com.hnac.hzims.business.*"})
|
||
1 year ago
|
@Resource
|
||
|
public class AlarmApplication extends SpringBootServletInitializer {
|
||
10 months ago
|
|
||
1 year ago
|
public static void main(String[] args) {
|
||
|
BladeApplication.run(AlarmConstants.APP_NAME, AlarmApplication.class, args);
|
||
|
}
|
||
|
|
||
|
@Override
|
||
|
protected SpringApplicationBuilder configure(SpringApplicationBuilder builder) {
|
||
|
return BladeApplication.createSpringApplicationBuilder(builder, AlarmConstants.APP_NAME, AlarmApplication.class);
|
||
|
}
|
||
|
|
||
|
}
|