54 lines
2.1 KiB
Java
54 lines
2.1 KiB
Java
package com.yanzhu.manage;
|
||
|
||
import com.yanzhu.common.security.annotation.EnableCustomConfig;
|
||
import com.yanzhu.common.security.annotation.EnableRyFeignClients;
|
||
import com.yanzhu.common.swagger.annotation.EnableCustomSwagger2;
|
||
import com.yanzhu.led.LedMainApplication;
|
||
import net.hasor.spring.boot.EnableHasor;
|
||
import net.hasor.spring.boot.EnableHasorWeb;
|
||
import org.slf4j.Logger;
|
||
import org.slf4j.LoggerFactory;
|
||
import org.springframework.boot.SpringApplication;
|
||
import org.springframework.boot.autoconfigure.SpringBootApplication;
|
||
import org.springframework.context.ApplicationContext;
|
||
import org.springframework.context.annotation.ComponentScan;
|
||
|
||
|
||
/**
|
||
* 业务模块
|
||
*
|
||
* @author ruoyi
|
||
*/
|
||
@EnableCustomConfig
|
||
@EnableCustomSwagger2
|
||
@EnableRyFeignClients
|
||
@SpringBootApplication
|
||
@ComponentScan(basePackages = {"com.yanzhu"})
|
||
@EnableHasor()
|
||
@EnableHasorWeb()
|
||
public class YanZhuManageApplication
|
||
{
|
||
private static Logger logger = LoggerFactory.getLogger(YanZhuManageApplication.class);
|
||
|
||
public static void main(String[] args)
|
||
{
|
||
ApplicationContext context = SpringApplication.run(YanZhuManageApplication.class, args);
|
||
System.out.println("(♥◠‿◠)ノ゙ 业务模块启动成功 ლ(´ڡ`ლ)゙ \n" +
|
||
" .-------. ____ __ \n" +
|
||
" | _ _ \\ \\ \\ / / \n" +
|
||
" | ( ' ) | \\ _. / ' \n" +
|
||
" |(_ o _) / _( )_ .' \n" +
|
||
" | (_,_).' __ ___(_ o _)' \n" +
|
||
" | |\\ \\ | || |(_,_)' \n" +
|
||
" | | \\ `' /| `-' / \n" +
|
||
" | | \\ / \\ / \n" +
|
||
" ''-' `'-' `-..-' ");
|
||
try{
|
||
LedMainApplication ledMainApplication = context.getBean(LedMainApplication.class);
|
||
// LedMainApplication使用@PostConstruct注解的initialize方法自动初始化,无需手动调用
|
||
}catch (Exception e){
|
||
logger.error("led启动异常",e.getMessage());
|
||
}
|
||
}
|
||
}
|