전체 글 썸네일형 리스트형 eclipse static import 등록과 Organize Import시 예외 처리. JUnit, Mockito등을 사용할 때, static import를 쓰게 되는데 이게 Organize Import를 하면 '*'가 사라지게 된다. 이 부분에 대한 회피방법. 1. Preferences -> Java -> Editor -> Templates 에서 code template에 import 추가 2. Preferences -> Java -> Code Style -> Organize Imports 에서 Number of static imports needed for .* 의 값을 99에서 1로 떨군다. 이제 ctrl + shift + o 를 눌러도 '*' 가 남아 있는 모습을 볼 수 있다. 더보기 JPA 에서 Auditing 적용하기. 우선 Spring Data Jpa를 보면 Auditing 을 처리할 수 있는 별도의 옵션이 있다. 그건 pass시키고, http://www.andygibson.net/blog/article/auditing-entities-with-jpa-events/ 1. Interface를 하나 만든다.public interface AuditiingEntity {public Date getCreatedDate();public Date setCreatedDate(Date createdDate);...} 2. EntityListener를 만들고.public class AuditingEntityListener {@PrePersistpublic void onPrePersist(Object o) {populateTimestam.. 더보기 Mac 에서 eclipse lombok의 사용. Mac 에서 eclipse.ini의 위치가 틀리다는걸 안순간..아 lombok.jar를 아무데나 두면 안되는 거겠다..를 감으로 알게 된다. eclipse.ini는 어디 있는 것일까.? 위의 디렉토리 구조에서 Eclipse.app 밑으로 들어가다 보면 나오게 된다. 허허. 자~ 들어가보자. 맨위의 path로 깊숙히 들어가면 최종 위치에 eclipse.ini 가 있는걸 알게되었다. 오호라~ 여튼 lombok.jar 를 다운받아 실행후, eclipse 의 위치를 지정해주던가 아래와 같이 바로 써주던가 하자. -javaagent:lombok.jar-xbootclasspath/a:lombok.jar 두줄이 추가 되었다. 끝..eclipse 를 실행하면 끝난다. 이후, 기존 프로젝트에서 build.gradle 을.. 더보기 Eclipse의 Freemarker Plugin 에 실망하다.. 사실 freemarker 의 문법은 그냥 http://freemarker.sourceforge.net/docs/index.html 이곳에서 보면서 코딩들어가도 문제없다.. 하지만 HTML의 Code Assist는 정말 간절할 때가 많다. 해서, freemarker 플러그인을 버리고 *.ftl을 JSP Editor로 돌려 버렸다. 우선 File Associations 에서 *.ftl에 대해 JSP Editor를 등록 후, Default로 설정한다. 두번째로 Content Types의 JSP 를 찾아서 *.ftl을 등록. 그럼 컬러풀한 HTML을 볼 수 있고, html의 Code Assist를 받을 수 있다. 더보기 행복한 이티씨 위젯!! http://cfile23.uf.tistory.com/image/011B7150519193E9021196" border="0"> http://cfile25.uf.tistory.com/image/247E1E50519193EA3433B7" border="0">http://cfile2.uf.tistory.com/image/2706E450519193EA2AEF2A" border="0">http://cfile26.uf.tistory.com/image/231BB650519193EC0160E1" border="0"> 더보기 이전 1 ··· 38 39 40 41 42 43 44 ··· 70 다음