[Error] javax.servlet.jsp.JspTagException: No message found under code 'XXX' for locale 'ko_KR'.
                    
                반응형
    
    
    
  
Spring 프로젝트에서 message 파일을 만들어서 JSP에 띄우려다 나타난 에러이다.
프로퍼티 이름을 잘못설정 해줘서 그렇다는데 나 같은 경우는 이름을 잘못 설정한 게 아니라... 설정파일에 설정을 안 넣어 줘서 문제가 된 거다.
@Bean
public MessageSource messageSource() {
	ResourceBundleMessageSource ms = new ResourceBundleMessageSource();
	ms.setBasenames("message.label");
	ms.setDefaultEncoding("UTF-8");
	return ms;
}
config 설정 파일을 만들고 이 설정을 넣어주면 message 프로퍼티를 사용할 수 있다.
message.label이라고 설정했으니 프로퍼티 이름은 반드시 label.properties여야 한다.
>>보통은 이 경우에서 오타가 나서 발생한다고...
반응형
    
    
    
  'Logs' 카테고리의 다른 글
- 
                                     [Tomcat] Error running 'Tomcat X.X.X': Cannot run program "XXX/bin/catalina.sh" (in directory "XXX/bin"): error=13, Permission denied 에러 해결하는 법2023.11.17 [Tomcat] Error running 'Tomcat X.X.X': Cannot run program "XXX/bin/catalina.sh" (in directory "XXX/bin"): error=13, Permission denied 에러 해결하는 법2023.11.17
- 
                                    ![[Tomcat / IntelliJ] The origin server did not find a current representation for the target resource or is not willing to disclose that one exists. 404 error 해결하는 법](//img1.daumcdn.net/thumb/C300x300/?fname=https%3A%2F%2Fblog.kakaocdn.net%2Fdna%2FoJ4oU%2FbtsAuMFsW42%2FAAAAAAAAAAAAAAAAAAAAAG8WN2C4DW4FPV1D_Uo2uI4q6kMw8giWF40KgGMHu2FE%2Fimg.png%3Fcredential%3DyqXZFxpELC7KVnFOS48ylbz2pIh7yKj8%26expires%3D1764514799%26allow_ip%3D%26allow_referer%3D%26signature%3D7E18lUTuyqPD0QTv3cAEM32hUZI%253D)   [Tomcat / IntelliJ] The origin server did not find a current representation for the target resource or is not willing to disclose that one exists. 404 error 해결하는 법2023.11.17 [Tomcat / IntelliJ] The origin server did not find a current representation for the target resource or is not willing to disclose that one exists. 404 error 해결하는 법2023.11.17
- 
                                    ![[Stable Diffusion] 맥(mac) m1에서 Stable Diffusion web-ui 실행시키는 법](//img1.daumcdn.net/thumb/C300x300/?fname=https%3A%2F%2Fblog.kakaocdn.net%2Fdna%2Frjcoz%2FbtsrrUmeuKn%2FAAAAAAAAAAAAAAAAAAAAAJCjMsQoxfRJRAlR7xofeJtM3qdew2J86BkRVK18iLHf%2Fimg.png%3Fcredential%3DyqXZFxpELC7KVnFOS48ylbz2pIh7yKj8%26expires%3D1764514799%26allow_ip%3D%26allow_referer%3D%26signature%3DSdEA%252BTn0R10gZMPm7kxwq9vkV%252BY%253D)   [Stable Diffusion] 맥(mac) m1에서 Stable Diffusion web-ui 실행시키는 법2023.08.19 [Stable Diffusion] 맥(mac) m1에서 Stable Diffusion web-ui 실행시키는 법2023.08.19
- 
                                    ![[Stable Diffusion] 맥 m1에서 RuntimeError: "upsample_nearest2d_channels_last" not implemented for 'Half' 에러 해결방법](//img1.daumcdn.net/thumb/C300x300/?fname=https%3A%2F%2Fblog.kakaocdn.net%2Fdna%2Fy46E0%2Fbtsrv6ffho6%2FAAAAAAAAAAAAAAAAAAAAAKGMsO4_fwEpquL5IQDUIMoYxfRKRbCHdW5IShXMCupV%2Fimg.png%3Fcredential%3DyqXZFxpELC7KVnFOS48ylbz2pIh7yKj8%26expires%3D1764514799%26allow_ip%3D%26allow_referer%3D%26signature%3DZNTjAs6uoToy2w0tTQFFQnvSPe0%253D)   [Stable Diffusion] 맥 m1에서 RuntimeError: "upsample_nearest2d_channels_last" not implemented for 'Half' 에러 해결방법2023.08.18 [Stable Diffusion] 맥 m1에서 RuntimeError: "upsample_nearest2d_channels_last" not implemented for 'Half' 에러 해결방법2023.08.18
 
                                    ![[Tomcat / IntelliJ] The origin server did not find a current representation for the target resource or is not willing to disclose that one exists. 404 error 해결하는 법](http://img1.daumcdn.net/thumb/C300x300/?fname=https%3A%2F%2Fblog.kakaocdn.net%2Fdna%2FoJ4oU%2FbtsAuMFsW42%2FAAAAAAAAAAAAAAAAAAAAAG8WN2C4DW4FPV1D_Uo2uI4q6kMw8giWF40KgGMHu2FE%2Fimg.png%3Fcredential%3DyqXZFxpELC7KVnFOS48ylbz2pIh7yKj8%26expires%3D1764514799%26allow_ip%3D%26allow_referer%3D%26signature%3D7E18lUTuyqPD0QTv3cAEM32hUZI%253D) 
 
                                        ![[Stable Diffusion] 맥(mac) m1에서 Stable Diffusion web-ui 실행시키는 법](http://img1.daumcdn.net/thumb/C300x300/?fname=https%3A%2F%2Fblog.kakaocdn.net%2Fdna%2Frjcoz%2FbtsrrUmeuKn%2FAAAAAAAAAAAAAAAAAAAAAJCjMsQoxfRJRAlR7xofeJtM3qdew2J86BkRVK18iLHf%2Fimg.png%3Fcredential%3DyqXZFxpELC7KVnFOS48ylbz2pIh7yKj8%26expires%3D1764514799%26allow_ip%3D%26allow_referer%3D%26signature%3DSdEA%252BTn0R10gZMPm7kxwq9vkV%252BY%253D) 
 
                                        ![[Stable Diffusion] 맥 m1에서 RuntimeError: "upsample_nearest2d_channels_last" not implemented for 'Half' 에러 해결방법](http://img1.daumcdn.net/thumb/C300x300/?fname=https%3A%2F%2Fblog.kakaocdn.net%2Fdna%2Fy46E0%2Fbtsrv6ffho6%2FAAAAAAAAAAAAAAAAAAAAAKGMsO4_fwEpquL5IQDUIMoYxfRKRbCHdW5IShXMCupV%2Fimg.png%3Fcredential%3DyqXZFxpELC7KVnFOS48ylbz2pIh7yKj8%26expires%3D1764514799%26allow_ip%3D%26allow_referer%3D%26signature%3DZNTjAs6uoToy2w0tTQFFQnvSPe0%253D)