Boot20220328Application.java

팡태(❁´◡`❁)·2022년 4월 6일
0

SPRING_20220328

목록 보기
11/24

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);
	}
}

0개의 댓글