Programming/Spring

태그로 저장된 문자열 출력하기 '저장' 이나 '추가' 와 같은 문자열은 웹 페이지에서 반복해서 사용하게 되는 문자열 중 하나이다. 저장 닫기 이러한 문자열을 JSP에 하드코딩하게 되면 다음과 같은 문제가 발생할 수 있다. 반복적인 문자열을 변경하여 통일 시키려고 할 때 ex) '저장' -> '저장하기' 다국어 지원 (한국을 제외한 나라에서 접속했을 때 '닫기' -> 'Close' 로 구현해야 할 때) 위 문제를 해결하기 위해 View 코드에서 사용되는 문자열을 언어별로 파일에 보관하여 언어에 따라 properties 파일에서 읽어와 출력하는 방법이 있다. 수행 순서 언어별로 문자열을 담은 메시지 properties 파일을 작성한다. properties 파일에서 값을 읽어오는 MessageSource 빈을..
1. Log4j 정의 Log4j - Log for Java 프로그램을 작성하는 도중에 로그를 남기기 위해 사용되는 자바 기반 로깅 유틸리티이다. 디버그용 도구로 주로 사용된다. logging.apache.org/log4j/2.x/index.html
싱글 파일 업로드 아래 디팬던시 추가 Maven Repository: commons-fileupload » commons-fileupload » 1.4 The Apache Commons FileUpload component provides a simple yet flexible means of adding support for multipart file upload functionality to servlets and web applications. commons-fileupload commons-fileupload 1.4 // https://mvnrepository.com/artifact/commons mvnrepository.com 위 디팬던시를 pom.xml에 추가 하고 servlet-context..
1. JUnit 이란 Junit은 자바용 단위 테스트 작성을 위한 산업 표준 프레임워크이다. 2. JUnit 페이지 Getting Start JUnit 5 Société Générale Use, Contribute and Attract: learn about Société Générale's open source strategy. junit.org junit-team/junit4 A programmer-oriented testing framework for Java. Contribute to junit-team/junit4 development by creating an account on GitHub. github.com 3. 애자일 방범론을 사용하는 JUnit Test Maven에서 Package할 ..
코딩무니
'Programming/Spring' 카테고리의 글 목록 (3 Page)