본문 바로가기
반응형

개발/Java18

[Springboot] 스프링 스케줄러 설정 / 1분 주기 / 5분 주기 / 매일 자정 / 환경 변수 이용 / 예제 1. @EnableScheduling 어노테이션 추가 @SpringBootApplication 어노테이션이 있는 Application.java 파일에 @EnableScheduling 어노테이션 추가 2. Scheduler.java 파일 생성 3. Scheduler class에 @Component 어노테이션 추가 4. 메소드 작성 및 @ Scheduled 어노테이션 작성 (크론표현식 이용) @Scheduled(cron = "0 */5 * * * *") 1분 주기 0 * * * * * 5분 주기 0 */5 * * * * 매일 자정 0 0 0 * * * 5. @Value 어노테이션 이용해서 application.yml, application-local.yml 등 파일에 있는 환경 변수 사용 @Component.. 2021. 1. 11.
[Maven 에러] maven warning failed to retrieve plugin descriptor -> 해결 openJDK cacert 인증서 문제 [+덤 SSLException] 굉장굉장 험난한 모험을 완주하고 나 같은 괴로움을 겪을 누군가를 위하여 기록을 남긴다 오늘 메이븐 프로젝트 clean과 install이 되지 않는 고통을 겪음.. 아래와 같은 WARNING이 미친듯이 뜨면서 ERROR가 남 [WARNING] Failed to retrieve plugin descriptor for org.apache.maven.plugins:maven-clean-plugin:2.5: Plugin org.apache.maven.plugins:maven-clean-plugin:2.5 or one of its dependencies could not be resolved: Failed to read artifact descriptor for org.apache.maven.plugins:mave.. 2020. 3. 9.
[Windows10] maven 설치 및 환경변수 설정 1. maven binary 파일 다운로드 https://maven.apache.org/download.cgi Maven – Download Apache Maven Downloading Apache Maven 3.6.3 Apache Maven 3.6.3 is the latest release and recommended version for all users. The currently selected download mirror is http://mirror.navercorp.com/apache/. If you encounter a problem with this mirror, please select another maven.apache.org 2. 압축 풀기 (원하는 경로) 3. 내 PC -> 속성 .. 2020. 3. 9.
[Windows 10 - Tomcat 설치 및 멀티 인스턴스 설정] Tomcat 설치 1. Tomcat 다운로드 - zip 파일 다운로드 https://tomcat.apache.org/download-70.cgi Apache Tomcat® - Apache Tomcat 7 Software Downloads Welcome to the Apache Tomcat® 7.x software download page. This page provides download links for obtaining the latest version of Tomcat 7.0.x software, as well as links to the archives of older releases. Unsure which version you need? Specification versions tomcat.a.. 2020. 3. 9.
[JAVA] Windows10 / Open JDK 설치 + 본문에 사용된 openJDK를 설치할 경우 cacert가 비어있으므로 오라클JDK나 다른JDK의 정상적인 cacert 파일로 바꿔줘야함을 안내드립니다. + 관련 오류 해결 방법 https://allonsyit.tistory.com/13 [Maven 에러] maven warning failed to retrieve plugin descriptor -> 해결 openJDK cacert 인증서 문제 [+덤 SSLException] 굉장굉장 험난한 모험을 완주하고 나 같은 괴로움을 겪을 누군가를 위하여 기록을 남긴다 오늘 메이븐 프로젝트 clean과 install이 되지 않는 고통을 겪음.. 아래와 같은 WARNING이 미친듯이 뜨면서 ERROR가 남 [W.. allonsyit.tistory.com 1. o.. 2020. 3. 7.
아스키 코드 ASCII Code 2진수/8진수/16진수/char 출력 public class App { public static void main( String[] args ) { for(int i = 0; i < 128; i++) { int ascii = i; System.out.println(ascii); //10진수 System.out.println(Integer.toBinaryString(ascii)); //2진수 System.out.println(Integer.toOctalString(ascii)); //8진수 System.out.println(Integer.toHexString(ascii)); //16진수 System.out.println((char)ascii); // character } } } 2019. 8. 23.