zjh
2024-12-12 5f4847d23506f10f76bc5ba493880bb3b87df12c
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
package com.ltkj;
 
import cn.hutool.crypto.SecureUtil;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.boot.autoconfigure.jdbc.DataSourceAutoConfiguration;
import org.springframework.cache.annotation.EnableCaching;
import org.springframework.context.annotation.ComponentScan;
import org.springframework.scheduling.annotation.EnableAsync;
import org.springframework.scheduling.annotation.EnableScheduling;
import org.springframework.transaction.annotation.EnableTransactionManagement;
 
/**
 * 启动程序
 *
 * @author ltkj
 */
@EnableTransactionManagement
@SpringBootApplication(exclude = {DataSourceAutoConfiguration.class},scanBasePackages = {"org.jeecg.modules.jmreport","com.ltkj"})
@EnableAsync
@EnableCaching
@EnableScheduling
public class LtkjApplication {
    public static void main(String[] args) {
        //spring-boot-devtools的模块使Spring Boot应用支持热部署,无需手动重启Spring Boot应用。
        System.setProperty("spring.devtools.restart.enabled", "false");
 
        SpringApplication.run(LtkjApplication.class, args);
        System.out.println("项目启动成功!!!\n" +
                "                                     \n" +
                "  ██       ██████████ ██   ██      ██\n" +
                "  ██           ██     ██  ██       ██\n" +
                "  ██           ██     ██ ██        ██\n" +
                "  ██           ██     ████         ██\n" +
                "  ██           ██     ██ ██        ██\n" +
                "  ██           ██     ██  ██  ██   ██\n" +
                "  ████████     ██     ██   ██  ██████\n");
       //linux解决hutll权限报错的问题
        SecureUtil.disableBouncyCastle();
    }
}