Java/Spring Framework

💎 @Scheduled Spring에서 제공하는 스케줄러 - 스케줄러 : 시간에 따른 특정 작업(Job)의 순서를 지정하는 방법. * * 주의사항 @Scheduled 어노테이션은 매개변수가 없는 메소드에만 적용 가능 ** * 설정 방법 1) servlet-context.xml -> Namespaces 탭 -> task 체크 후 저장 2) servlet-context.xml -> Source 탭 -> 추가 * @Scheduled 속성 - fixedDelay : 이전 작업이 끝난 시점으로 부터 고정된 시간(ms)을 설정. @Scheduled(fixedRate = 10000) // 이전 작업이 시작된 후 10초 뒤에 실행 - fixedRate : 이전 작업이 수행되기 시작한 시점으로 부터 고정된 시간(ms)을..
import java.text.SimpleDateFormat; public class Util { // 파일명 변경 메소드 public static String fileRename(String originFileName) { SimpleDateFormat sdf = new SimpleDateFormat("yyyyMMddHHmmss"); String date = sdf.format(new java.util.Date(System.currentTimeMillis())); int ranNum = (int) (Math.random() * 100000); // 5자리 랜덤 숫자 생성 String str = "_" + String.format("%05d", ranNum); String ext = originFileN..
💎 애플케이션 배포 🏆 Run Configurations에 tomcat7:deploy 입력 🏆 apache-tomact-8.5.93 tomcat-users 실행 🏆 ↓ 코드 복사후 실행된 tomact-users 파일에 주석친곳밑에 붙여넣기!! 🏆 pom.xml에 ↓ 밑에 plugin 코드 붙여넣기 org.apache.tomcat.maven tomcat7-maven-plugin 2.2 http://127.0.0.1:8899/manager/text admin admin /DeployExam 🏆 설정이 끝났으면 Maven Update Project 실행 🏆 http://localhost:8899/DeployExam/DeployExam.jsp 코드를 브라우저에 입력 🎈 정상적으로 배포환경을 만들었다면 ↓ 배포한..
💎 정규 표현식(Regular Expression) 📢 참고 사이트 및 정규표현식 확인사이트 정규 표현식 - JavaScript | MDN 정규 표현식, 또는 정규식은 문자열에서 특정 문자 조합을 찾기 위한 패턴입니다. JavaScript에서는 정규 표현식도 객체로서, RegExp의 exec() (en-US)와 test() 메서드를 사용할 수 있습니다. String의 match() developer.mozilla.org RegExr: Learn, Build, & Test RegEx RegExr is an online tool to learn, build, & test Regular Expressions (RegEx / RegExp). regexr.com Regexper regexper.com 📢 정규표현..
💎 RowBounds - RowBounds row = new RowBounds(offset , limit); offset : 데이터를 가져오는 시작점에서 얼마나 떨어진 데이터인지를 적어주는것. limit : 한페이지에 몇개의 값을 가져오는지 적어주는것. public List selectManagementList(Pagination pagination) { int offset =(pagination.getCurrentPage() -1) * pagination.getLimit(); RowBounds rowBounds = new RowBounds(offset,pagination.getLimit()); return sqlSession.selectList("AdministratorMapper.selectManag..
💎 JSP DOCTYPE html> 로그인 페이지 Login 아이디 저장 회원가입 | ID/PW 찾기 💎 JS const loginFrm = document.getElementById("loginFrm"); const memberEmail = document.querySelector("#loginFrm input[name='memberEmail']"); const memberPw = document.querySelector("#loginFrm input[name='memberPw']"); if(loginFrm != null){ // 로그인 시도를 할 때 loginFrm.addEventListener("submit", e=> { // alert("로그인") // preventDefault : form ,a..
📣 링크 📞 JSP, JS [ Spring ] 채팅 기능구현 - JSP JS 📣 링크 📞 JSP, JS https://mungwang.tistory.com/entry/Spring-%EC%B1%84%ED%8C%85-%EA%B8%B0%EB%8A%A5%EA%B5%AC%ED%98%84-JSP-JS 📞 ChattingController https://mungwang.tistory.com/entry/Spring-%EC%B1%84%ED%8C%85%EA%B8%B0%EB%8A%A5%EA%B5%AC%ED%98%84-Contr mungwang.tistory.com 📞 ChattingController [ Spring ] 채팅 기능구현 - Controller 📣 링크 📞 JSP, JS https://mungwang.tisto..
📣 링크 📞 JSP, JS [ Spring ] 채팅 기능구현 - JSP JS 📣 링크 📞 JSP, JS https://mungwang.tistory.com/entry/Spring-%EC%B1%84%ED%8C%85-%EA%B8%B0%EB%8A%A5%EA%B5%AC%ED%98%84-JSP-JS 📞 ChattingController https://mungwang.tistory.com/entry/Spring-%EC%B1%84%ED%8C%85%EA%B8%B0%EB%8A%A5%EA%B5%AC%ED%98%84-Contr mungwang.tistory.com 📞 ChattingController [ Spring ] 채팅 기능구현 - Controller 📣 링크 📞 JSP, JS https://mungwang.tisto..
📣 링크 📞 JSP, JS [ Spring ] 채팅 기능구현 - JSP JS 📣 링크 📞 JSP, JS https://mungwang.tistory.com/entry/Spring-%EC%B1%84%ED%8C%85-%EA%B8%B0%EB%8A%A5%EA%B5%AC%ED%98%84-JSP-JS 📞 ChattingController https://mungwang.tistory.com/entry/Spring-%EC%B1%84%ED%8C%85%EA%B8%B0%EB%8A%A5%EA%B5%AC%ED%98%84-Contr mungwang.tistory.com 📞 ChattingController [ Spring ] 채팅 기능구현 - Controller 📣 링크 📞 JSP, JS https://mungwang.tisto..
📣 링크 📞 JSP, JS [ Spring ] 채팅 기능구현 - JSP JS 📣 링크 📞 JSP, JS https://mungwang.tistory.com/entry/Spring-%EC%B1%84%ED%8C%85-%EA%B8%B0%EB%8A%A5%EA%B5%AC%ED%98%84-JSP-JS 📞 ChattingController https://mungwang.tistory.com/entry/Spring-%EC%B1%84%ED%8C%85%EA%B8%B0%EB%8A%A5%EA%B5%AC%ED%98%84-Contr mungwang.tistory.com 📞 ChattingController [ Spring ] 채팅 기능구현 - Controller 📣 링크 📞 JSP, JS https://mungwang.tisto..
Mungwang
'Java/Spring Framework' 카테고리의 글 목록