package com.zcloud.zcGbsServicer;

import com.alibaba.nacos.api.exception.NacosException;
import com.jjb.saas.base.starter.bootstart.JJBSpringbootApplication;
import org.springframework.boot.SpringApplication;


/**
 * Spring Boot Starter
 */
@JJBSpringbootApplication(
        scanBasePackages = {"com.zcloud","com.jjb"},
        mapperPackages = {"com.zcloud.*.persistence.mapper"}
)
//@EnableGatewayServer
//@EnableFacadeRpcClient
public class Application {

    public static void main(String[] args) throws NacosException {
//        NacosConfigProperties nacosConfigProperties = new NacosConfigProperties();
//        nacosConfigProperties.setServerAddr("gbs-nacos.qhdsafety.com");
//        nacosConfigProperties.setNamespace("jjb-dragon");
//        String serverAddr = "{serverAddr}";
//        Properties properties = new Properties();
//        properties.put("serverAddr", serverAddr);
//
//        // if need username and password to login
//        properties.put("username","${username}");
//        properties.put("password","${password}");
//
//        ConfigService configService = NacosFactory.createMaintainService(properties);
//        NamingService configService = NacosFactory.createNamingService(properties);
//        com.zcloud.gbscommon.utils.DateUtil dateUtil = new DateUtil();
        SpringApplication.run(Application.class, args);
    }
}
