개발
-
톰켓 Permgen 메모리 설정하기개발 2015. 2. 11. 10:15
Thanks Mkyong!! 1. SolutionBy default, Tomcat is assigned a very little PermGen memory for the running process. To fix it, increase the PermGen memory settings by using the following Java VM options.-XX:PermSize - Set initial PermGen Size. -XX:MaxPermSize - Set the maximum PermGen Size. 2. WindowsTomcat is managed by this script file catalina.bat, dive inside the script, you will find out that c..
-
[HTML] 화면 중앙 위치 시키기개발 2015. 2. 4. 18:12
1.#center { position:absolute; top:40%; left:40%; width:466px; height:400px; overflow:hidden; margin-top:-150px; margin-left:-100px;} 2..container { width:auto; height:auto; text-align:center; vertical-align:middle;}.block { margin: 150px;} 되긴하는데 찜찜하네...역시 자기가 잘 못하는 영역은 넘보는게 아닌듯.
-
springframework + commons-configuration + jasypt 사용 예개발 2015. 1. 31. 17:38
springframework와 연동하여 사용하는 예 프로퍼티 관련하여서는 org.springframework.beans.factory.config.PropertyPlaceholderConfigurer 클래스를 사용한다. (설명 및 사용 예는 생략) jasypt를 이용하여 암호화된 내용을 처리할 때는 EncryptablePropertyPlaceholderConfigurer 클래스를 사용한다.(org.jasypt.spring3.properties.EncryptablePropertyPlaceholderConfigurer or org.jasypt.spring31.properties.EncryptablePropertyPlaceholderConfigurer) - commons-configuration maven d..
-
-
[Jackson] 관계를 갖는 객체 변환 에러개발 2015. 1. 25. 16:04
부모 자식 관계 같은 관계를 갖는 객체는 아래와 같은 어노테이션을 붙여주어야 한다. 부모 @JsonManagedReference 자식 @JsonBackReference 실제로 ORM을 사용하다 보면 테이블간의 관계를 표현하는 객체들을 바로 JSON으로 변경할때 조인 컬럼들이 변환에러가 남. 참고http://jackson.codehaus.org/1.7.9/javadoc/org/codehaus/jackson/annotate/JsonManagedReference.html http://jackson.codehaus.org/1.9.2/javadoc/org/codehaus/jackson/annotate/JsonBackReference.html
-
[JPA 2.0] MayToMany 설정하기개발 2015. 1. 25. 15:38
USER - ROLE의 관계 설정을 가정 User 클래스 @Id@Column(name = "USER_ID") private String userId;@ManyToMany(fetch = FetchType.EAGER)@JoinTable(name = "AUTHORITIES", joinColumns = { @JoinColumn(name = "USER_ID", referencedColumnName = "USER_ID") }, inverseJoinColumns = { @JoinColumn(name = "ROLE_ID", referencedColumnName = "ROLE_ID") }) private Set roles; Role 클래스 @Id@Column(name = "ROLE_ID") private String r..