Boot20220328Application.java

example/boot_20220328/Boot20220328Application.java

package com.example.boot_20220328;

import org.mybatis.spring.annotation.MapperScan;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.context.annotation.ComponentScan;
import org.springframework.context.annotation.EnableAspectJAutoProxy;

@EnableAspectJAutoProxy
@SpringBootApplication
// 컨트롤러, 환경설정, 서비스(구버전용)
@ComponentScan(basePackages = { 
	"com.example.controller", 
	"com.example.service", 
	"com.example.config",
	"com.example.aop",
	"com.example.interceptor" })

@MapperScan(basePackages = {"com.example.mapper"})
public class Boot20220328Application {

	public static void main(String[] args) {
		SpringApplication.run(Boot20220328Application.class, args);
	}
}

좋은 웹페이지 즐겨찾기