2022년 5월 25일 수요일

클래스로더 ClassLoader 가 로딩중인 lib 파일 경로 찾기

 ClassLoader classloader =

    org.apache.xmlbeans.XmlOptions.class.getClassLoader();
java.net.URL res = classloader.getResource(
    "org/apache/xmlbeans/XmlOptions.class");
String path = res.getPath();
System.out.println("XmlOptions came from " + path);

2022년 4월 10일 일요일

HashMap 데이타 추출

 

Map<String, Object> pMap = new HashMap<String, Object>();

pMap.put("UserId", "id");

pMap.put("UserId", "id");

pMap.put("UserId", "id");


for( Map.Entry<String, Object> pa : pMap.entrySet()){

System.out.println(" [pMap key] :" + pa.getKey() + ", [Value] : " + pa.getValue());

}



2022년 2월 3일 목요일

@RequestMapping + 한글 파라미터 404 Not Found

 

@PathVariable 한글 파라미터 인경우 


tomcat >> server.xml >> URIEncoding="UTF-8" 추가

JEUS >>  jeusadmin >> server > Engind >> Encoding >> request Url Encoding >> forced >> UTF-8 추가