springboot
-
[스프링 부트] 예외처리(Exception) @ControllerAdvice @RestControllerAdvice @ExceptionHandler @ResponseStatusSpring Boot 2022. 2. 14. 14:16
[스프링 부트] 예외처리(Exception) @ControllerAdvice @RestControllerAdvice @ExceptionHandler @ResponseStatus 안녕하세요? 장장스입니다! 오늘은 스프링에서 '예외 처리를 어떻게 할 것인가'에 대한 포스팅을 하려고 합니다. 코드를 작성하며 고민 되는 문제 중 하나가 어떻게 예외 처리를 해야 하는가 입니다. Exception In Java 예외 계층 구조에서 볼 수 있듯이 Java에서 발생하는 오류는 Error 클래스와 Exception 클래스로 나뉩니다. 모든 오류 및 예외는 Throwable 클래스를 상위 클래스로 가집니다. Throwable를 상속받은 하위 클래스의 인스턴스들은 JVM 또는 Java throw 문에 의해 throw됩니다...
-
Logback이란? feat.SLF4JSpring Boot 2022. 1. 30. 18:51
Logback이란? feat.SLF4J Logback? logback은 SLF4J의 구현체입니다. logback-core, logback-classic 및 logback-access의 세 가지 모듈로 구분됩니다. Logger, Appenders and Layouts Logger클래스는 logback-classic 모듈의 일부입니다 . 반면에 Appender및 Layout인터페이스는 logback-core의 일부입니다. 범용 모듈로서 logback-core에는 로거 개념이 없습니다. ▶Logger Logger는 가능한 모든 로그 기록을 개발자가 선택한 일부 기준에 따라 분류된다고 가정합니다. level of request p effective level q TRACE DEBUG INFO WARN ERROR..
-
[Spring boot] MySql 연결 에러, com.mysql.cj.jdbc.driverSpring Boot 2022. 1. 19. 00:01
[스프링 부트] MySql 연결 에러, com.mysql.cj.jdbc.driver this is deprecated. the new driver class is `com.mysql.cj.jdbc.driver'. the driver is automatically registered via the spi and manual loading of the driver class is generally unnecessary. 뭔데 4.4.1.3 Changes in the Connector/J API The name of the class that implements java.sql.Driver in MySQL Connector/J has changed from com.mysql.jdbc.Driver to com...