일 | 월 | 화 | 수 | 목 | 금 | 토 |
---|---|---|---|---|---|---|
1 | ||||||
2 | 3 | 4 | 5 | 6 | 7 | 8 |
9 | 10 | 11 | 12 | 13 | 14 | 15 |
16 | 17 | 18 | 19 | 20 | 21 | 22 |
23 | 24 | 25 | 26 | 27 | 28 |
- Firebase
- Program type already present
- fragment
- jQuery
- Android Apk 이름
- Android Apk 이름 변경
- html
- JavaScript
- DataTable
- release unsigned
- release Apk
- FLUTTER
- css
- CSS사용법
- error
- java error
- MySQL
- android error
- spring
- tomcat
- Kotlin
- android fragment
- R프로그래밍
- Eclipse
- Android Apk
- Java
- Exception
- Android
- apache gzip
- 안드로이드
- Today
- Total
목록Server (46)
selfstarter
###src/main/resources 위치를 가져오는 방법 Url url = ClassName.class.getResource("파일명"); System.out.println(url.toString());
전자정부프레임워크(egov) logback 설정 logback 설정 pom.xmlch.qos.logbacklogback-classic1.1.7 logback.xml 생성 src/main/resources에 xml 파일 생성 %d{HH:mm} %-5level %logger{36} - %msg%n egov에서 적용이 안될 때 기존에 spring에서 logback을 사용하던 설정 그대로 egov에 적용해도 적용이 안될 때가 있다. 이럴 땐 logback이 아닌 log4j 라이브러리를 참고하기 때문에 나타나는 현상 log4j 관련 설정을 무시하도록 설정한다 pom.xml에 log4j 무시 exclusion 추가 egovframework.rte egovframework.rte.fdl.logging ${egovfr..
error message org.apache.ibatis.binding.BindingException: Invalid bound statement (not found): mapper pakage Issue BaseMapper에 bean 등록을 하고 mapper를 통해서 쿼리문을 날려 원하는 값을 가져오는 예제를 실행시킴. 그런데 자꾸 Invalid bound statement 에러가 뜸 code @RunWith(SpringJUnit4ClassRunner.class) @ContextConfiguration(classes = { com.base.server.comm.config.RootConfig.class }) public class selectTest { @Setter(onMethod\_ = @Autow..
@ControllerAdvice JavaConfig 예외 처리 - 예외상황을 예외 클래스를 만들어서 처리하면 예외 처리 중복 코드를 없앨 수 있다 - @ControllerAdvice는 오류를 처리하는 Controller임을 나타내는 어노테이션 - CommonExceptionAdvice class 생성 - @ ComponentScan 어노테이션으로 CommonExceptionAdvice class를 검색할 수 있도록 만든다 import org.slf4j.Logger; import org.slf4j.LoggerFactory; import org.springframework.http.HttpStatus; import org.springframework.ui.Model; import org.springframe..
이클립스 단축키(Eclipse Shortcut Key) 모음 찾기 Ctrl + H : 기본 파일 검색 Ctrl + Shift + L : Quick Search 플러그인 파일 검색(Quick Search 설치 해야함) Ctrl + Shift + R : 파일 찾기 Ctrl + K : 검색한 내용 중 다음 내용으로 이동 Ctrl + Shift + K : 검색한 내용 중 이전 내용으로 이동 이동 F3 : 구현부로 이동( interface 상속 클래스인 경우에는 interface로 가는 경우가 있다) F3이 귀찮기 때문에 단축키 설정을 한다. Window-Preferences-General-Keys 에서 Opens the Implementation 를 선택하고 Binding F4를 하면 인터페이스 상속받은 cla..
Spring JavaConfig 다국어 처리 다국어 처리를 Client 단에서 하면 코드가 지저분해지고 유지보수도 어렵다 Spring에서 properties 파일을 이용하여 다국어 처리를 쉽게할 수 있도록 지원해준다 ContextMessageConfig 다국어 설정을 할 Config(MessageConfig.java)추가 setBasename는 메시지 properties가 있는 위치로 설정해준다 import org.springframework.context.annotation.Bean; import org.springframework.context.annotation.Configuration; import org.springframework.context.support.ReloadableResourceB..