模块化拆分

This commit is contained in:
禾几海
2021-10-01 01:08:46 +08:00
parent c1c7f38ee9
commit 7e700b6499
69 changed files with 471 additions and 331 deletions

View File

@@ -17,7 +17,6 @@ import org.springframework.web.bind.annotation.ExceptionHandler;
import org.springframework.web.bind.annotation.ResponseBody;
import org.springframework.web.method.annotation.MethodArgumentTypeMismatchException;
import javax.annotation.Resource;
import javax.servlet.http.HttpServletRequest;
/**
@@ -28,11 +27,11 @@ import javax.servlet.http.HttpServletRequest;
@ControllerAdvice
public class ExceptionHandle {
public static final Logger logger = LoggerFactory.getLogger(ExceptionHandle.class);
@Resource
@Autowired
MailService mailService;
@Autowired
HttpServletRequest request;
@Value("${spring.profiles.active}")
@Value("${spring.profiles.active:dev}")
private String activeModel;
@ExceptionHandler(value = Exception.class)