package com.xintong.visualinspection;

import com.alibaba.druid.pool.DruidDataSource;
import com.alibaba.fastjson.parser.ParserConfig;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.boot.context.properties.ConfigurationProperties;
import org.springframework.boot.web.servlet.ServletComponentScan;
import org.springframework.context.annotation.Bean;
import org.springframework.transaction.annotation.EnableTransactionManagement;
import org.thymeleaf.extras.springsecurity4.dialect.SpringSecurityDialect;
import org.thymeleaf.spring4.SpringTemplateEngine;
import org.thymeleaf.templateresolver.ServletContextTemplateResolver;

import javax.sql.DataSource;

@SpringBootApplication
@ServletComponentScan
public class VideocheckApplication {
//	@Bean
//	@ConfigurationProperties(prefix="spring.datasource")
//	public DataSource druidDataSource() {
//		return new DruidDataSource();
//	}
//


	public static void main(String[] args) {
		ParserConfig.getGlobalInstance().addAccept("com.xintong.visualinspection.");
		ParserConfig.getGlobalInstance().addAccept("org.springframework.security.core.");
        
        SpringApplication.run(VideocheckApplication.class, args);
	}
}
