목록eGovFrame (4)
조각이론
각 브라우저별 해더정보는 다음과 같습니다. 1. Internet Explorer 11Mozilla/5.0 (Windows NT 6.3; WOW64; Trident/7.0; rv:11.0) like Gecko 1-1. Internet Explorer 10Mozilla/5.0 (compatible; MSIE 10.0; Windows NT 6.1; WOW64; Trident/6.0) 2. SafariMozilla/5.0 (Windows NT 6.2; WOW64) AppleWebKit/534.57.2 (KHTML, like Gecko) Version/5.1.7 Safari/534.57.2 3. ChromeMozilla/5.0 (Windows NT 6.3; WOW64) AppleWebKit/537.36 (KHTM..
Spring MVC를 다룰 때, 요청에 딸려오는 값들을 처리할 때 유용한 ServletRequestUtils 와 더불어 하나 더 유용한 클래스가 있는데, 바로 WebUtils 입니다. WebUtils 클래스를 사용하면 Session에 담겨있는 객체들을 보다 짧은 코드로 넣고 빼고 할 수 있으며, 세션 객체나 쿠키 객체를 받아올 수 있습니다. 원래는 다음과 같이 Request 객체를 직접 통해서 Session 객체에 접근해야 했습니다. UserSession userSession = (UserSession) request.getSession().getAttribute("userSession"); 그러나 Spring의 WebUtils를 사용하면 . 을 두 개 사용하여 길게 가지 않아도 됩니다. UserSess..
serialVersionUID 이란? Warning 해결하기 객체를 파일에 쓰거나 전송하기 위해서는 직렬화를 해야 하는데 그러기 위해 객체 클래스에 Serializable 인터페이스를 implements 하게 된다. [JAVA] 객체 직렬화 ObjectInputStream / ObjectOutputStream 하지만 Serializable 인터페이스를 implements 하게 되면 노란색 Warning이 발생한다. The serializable class *** does not declare a static final serialVersionUID field of type long 저렇게 Warning이 발생하지만 동작하는데는 문제가 없다. 그래도 계속 저렇게 Warning이 떠있는데 왜 생기는 것이며 ..