Notice
                              
                          
                        
                          
                          
                            Recent Posts
                            
                        
                          
                          
                            Recent Comments
                            
                        
                          
                          
                            Link
                            
                        
                    목록handler (1)
민스씨의 일취일장
      
      
        LogT | Java Spring의 Exception 처리에 대해 알게 된 모든 내용과 고민들
        
  
  
        
    
            
            
            
            
            
            
              
            
          Java Srping의 Exception 처리에 대해 알게 된 내용들을 시간순으로 정리하는 글이다. 2023년 1월 12일 Exception Exception이 발생한다 throw new Exception("예외 발생"); Exception을 처리한다 try { throw new Exception("예외 발생"): } catch (Exception e) { return "error"; // error.jsp 또는 error.html을 보여준다. } Class 내에 Exception 처리 Method를 만든다 @ExceptionHandler(Exeption.class) public String catcher(Exception e){ return "error"; } // try-catch문에서 catch 부..
        Programming Language & Framework/JAVA & Spring
        
        2023. 1. 12. 23:17