2023-11-07 09:32:12 +08:00
|
|
|
|
package com.zcloud;
|
|
|
|
|
|
|
|
|
|
import com.zcloud.util.Const;
|
|
|
|
|
import org.apache.shiro.crypto.hash.SimpleHash;
|
|
|
|
|
import org.mybatis.spring.annotation.MapperScan;
|
|
|
|
|
import org.springframework.boot.SpringApplication;
|
|
|
|
|
import org.springframework.boot.autoconfigure.SpringBootApplication;
|
|
|
|
|
import org.springframework.boot.autoconfigure.jdbc.DataSourceAutoConfiguration;
|
|
|
|
|
import org.springframework.cache.annotation.EnableCaching;
|
2023-11-08 10:24:18 +08:00
|
|
|
|
import org.springframework.context.annotation.Conditional;
|
2023-11-07 09:32:12 +08:00
|
|
|
|
import org.springframework.scheduling.annotation.EnableScheduling;
|
|
|
|
|
|
|
|
|
|
/**
|
|
|
|
|
* 说明:启动类
|
|
|
|
|
* 作者:luoxiaobao
|
|
|
|
|
* 官网:www.qdkjchina.com
|
|
|
|
|
*/
|
|
|
|
|
@SpringBootApplication//去除冲突
|
|
|
|
|
@MapperScan("com.zcloud.mapper")
|
|
|
|
|
@EnableCaching
|
2023-11-08 10:24:18 +08:00
|
|
|
|
@EnableScheduling
|
|
|
|
|
// 2.开启定时任务
|
2023-11-07 09:32:12 +08:00
|
|
|
|
public class FHmainApplication {
|
|
|
|
|
public static void main(String[] args) {
|
|
|
|
|
SpringApplication.run(FHmainApplication.class, args);
|
|
|
|
|
}
|
|
|
|
|
// public static void main(String[] args) {
|
|
|
|
|
// String admin = new SimpleHash("SHA-1", "admin", Const.DEFAULT_PASSWORD).toString();
|
|
|
|
|
// System.out.println(admin);
|
|
|
|
|
// }
|
|
|
|
|
}
|
|
|
|
|
|