기본 콘텐츠로 건너뛰기

글

스프링 로그아웃 퍼온글

1.logout은 별거 없다. security-context.xml의 http에  ? 1 2 < logout delete-cookies = "true" logout-success-url = "/user/loginPage"             logout-url = "/user/logout" invalidate-session = "true" /> 를 추가한다. logout-url : 로그아웃이 요청될 url (이 주소로 요청이 들어오면 security에서 알아서 logout시켜준다) ​ logout-success-url : 로그아웃이 성공 후 이동할 주소 ​ delete-cookies : 쿠키 삭제 여부 ​ invalidate-session : 세션 제거 여부

java 특정 폴더 파일리스트 읽기

String path="C:\"; File dirFile=new File(path); File []fileList=dirFile.listFiles(); for(File tempFile : fileList) {   if(tempFile.isFile()) {     String tempPath=tempFile.getParent();     String tempFileName=tempFile.getName();     System.out.println("Path="+tempPath);     System.out.println("FileName="+tempFileName);     /*** Do something withd tempPath and temp FileName ^^; ***/   } }