분류 전체보기

1단계 : 2557번 Hello World!를 출력하시오. 예제입력 예제출력 Hello World! public class Main { public static void main(String args[]){ System.out.println("Hello World!"); } } 2단계 : 1000번 두 정수 A와 B를 입력받은 다음, A+B를 출력하는 프로그램을 작성하시오. 예제입력 1 2 예제출력 3 import java.util.Scanner; public class Main { public static void main(String args[]){ Scanner sc = new Scanner(System.in); int A = sc.nextInt(); int B = sc.nextInt(); Syst..
1. html - Spring Boot 에서 지원하는 태그 옵션 "text-white" : 글자 색 흰색 "mx-2" : x 축으로 여백 2만큼 "my-2" : y 축으로 여백 2만큼 2. Spring Security 를 사용하여 로그인 여부 판단하기 - 로그인 여부에 따라 사용할 수 있는 옵션 정하기 sec:authorize="isAuthenticated()" // 로그인이 된 경우 sec:authorize="!isAuthenticated()" // 로그인이 되지 않은 경우 // pom.xml에 설정 해줘야 하는 디펜던시 org.thymeleaf.extras thymeleaf-extras-springsecurity5 * 백준 단계별로 풀기 1단계 14문제 (2557, 1000, 1001, 10998, ..
1. Spring Boot (Spring Security) - PasswordEncoder .passwordEncoder()를 통해 활성화 ------------------------------------------------------------------------------------------------------------------ ERROR 1. 오류 발생 장소 : 회원가입 기능에서 등장한 오류 2022-12-21 13:17:47.886 WARN 18008 --- [nio-8080-exec-3] o.h.engine.jdbc.spi.SqlExceptionHelper : SQL Error: 0, SQLState: 08000 2022-12-21 13:17:47.886 ERROR 18008 --- ..
[파일 단계] / working directory / / untracked / tracked / / staging area / / .git directory / git status => 현재 파일이 있는 단계 확인 git add [파일명] => working directory -> staging area로 업로드 하기 전 단계 git rm --cached [파일명] => staging area에서 working directory로 이동 깃과 깃허브에 추가하고 싶지 않은 파일을 .gitignore에 위치 echo *.log > .gitignore => .log 형식의 파일을 .gitignore에 추가 ** 파일 열기 Mac : open [파일명] Window : start [파일명] 파일 변경 로그 확인 ..
· JAVA
1. Window builder를 사용하여 계산기 프레임 디자인 2. 각 버튼에 이벤트 생성 2-1. 숫자버튼에 이벤트 생성 JButton btn7 = new JButton("7"); // 버튼 이벤트 설정하기 btn7.addActionListener(new ActionListener() { public void actionPerformed(ActionEvent e) { // 텍스트 필드에 있는 기존 숫자 + 숫자 7 추가 String EnterNumber = textField.getText() + btn7.getText(); textField.setText(EnterNumber); // 텍스트 필드에 출력 } }); btn7.setFont(new Font("Tahoma", Font.BOLD, 20));..
1. #include int main(void) { char ch; printf("문자를 하나 입력하세요 >> "); ch = getchar(); printf("\n%c의 아스키 코드값은 십진수로 %d 입니다.", ch, ch); return 0; } /* 문자를 하나 입력하세요 >> * *의 아스키 코드값은 십진수로 42 입니다. */ 2. #include #include int main(void) { char ch[30]; printf("한 단어를 입력하세요 >> "); scanf("%s", ch); // scanf() : 문자열 표준입력 int len = strlen(ch); // len : 문자열 ch의 길이 printf("입력한 단어를 반대로 출력합니다 >> "); for (int i = len..
MoveForward
'분류 전체보기' 카테고리의 글 목록 (46 Page)