Skip to content

Instantly share code, notes, and snippets.

@SeonghoonKim
SeonghoonKim / gist:3421336
Created August 22, 2012 01:45
Initialize-on-demand holder class idiom - Wikipedia
public class Something {
private Something() {
}
private static class LazyHolder {
private static final Something INSTANCE = new Something();
}
public static Something getInstance() {
return LazyHolder.INSTANCE;
@SeonghoonKim
SeonghoonKim / gist:2929051
Created June 14, 2012 08:34
Servlet 3.0 HttpOnly Cookie 설정
<session-config>
<cookie-config>
<http-only>true</http-only>
</cookie-config>
</session-config>