package com.dtok.api;


import cn.dev33.satoken.SaManager;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.boot.autoconfigure.domain.EntityScan;
import org.springframework.context.annotation.ComponentScan;
import org.springframework.data.jpa.repository.config.EnableJpaRepositories;

@ComponentScan(basePackages = {"com.dtok.framework", "com.dtok.api", "com.dtok.framework.configure",
        "com.dtok.framework.listener",  "com.dtok.framework.authenticate","com.dtok.service"})
@EnableJpaRepositories(basePackages = {"com.dtok.repository"})
@EntityScan(basePackages = {"com.dtok.entity"})
@SpringBootApplication
public class ApiApplication {

    public static void main(String[] args) {
        SpringApplication.run(ApiApplication.class, args);
        System.out.println("启动成功：Sa-Token配置如下：" + SaManager.getConfig());


    }

}
