-
[Eclipse+Spring+Maven] 웹 프로젝트 Import 후 환경 세팅(feat.tomcat server)
기존의 메이븐 프로젝트를 내 로컬에서 Import 할 때, 프로젝트 폴더에 빨간느낌표 (Error표시)를 보게된다면? 다음의 3가지를 유의하며 환경 설정을 하도록 하자. JRE Maven Tomcat 1. JRE 설정 OpenJDK를 다운받아서 사용할 경우 (필자는 OpenJDK 1.8를 사용한다) https://github.com/ojdkbuild/ojdkbuild GitHub - ojdkbuild/ojdkbuild: Community builds using source code from OpenJDK project Community builds using source code from OpenJDK project - GitHub - ojdkbuild/ojdkbuild: Community builds ..
더보기
-
Spring Boot+JPA+MySQL 테이블 생성 안될 때 (feat. Maven dependency 추가)
Error Message #1 myspringframework.beans.factory.UnsatisfiedDependencyException: Error creating bean with name 'dataSourceScriptDatabaseInitializer' defined in class path resource [org/springframework/boot/autoconfigure/sql/init/DataSourceInitializationConfiguration.class]: Unsatisfied dependency expressed through method 'dataSourceScriptDatabaseInitializer' parameter 0; nested exception is org...
더보기
-
insmod
| insmod sudo insmod [파일명] sudo insmod [led_dev.ko] cat명령어로 /proc/devices경로에 알맞게 적재되었는지 확인
더보기
-
[Ubuntu] C언어 사칙연산 계산기소스로 <정적, 동적>라이브러리 생성하기
| 목차 1. Makefile 생성 2. 정적 라이브러리 생성 3. 동적 라이브러리 생성 | Makefile 생성 1. C언어 사칙연산 계산기소스를 main.c / calculate.c / input.c / calc.h 4개의 파일로 나눔 2. Makefile 생성 | 정적 라이브러리 생성 1. 아카이브로 묶은 후 정적으로 컴파일 하기 - libcalc.a 파일 생성됨 | 동적 라이브러리 생성 1. 소스파일 컴파일하기 2. 라이브러리 생성하기 3. 라이브러리 링크 파일 생성하기 4. 공유라이브러리를 이용하여 컴파일하기 5. 라이브러리를 시스템에 등록하기 6. 경로 갱신하기
더보기
-
Git 원격 저장소 주소 변경하는 방법
이슈 상황 프로젝트의 원격 저장소가 A에서 B로 변경되었다. 이에 따라, 원격 저장소 주소를 변경 적용하고자 한다. 해결 방법 1. 프로젝트가 위치한 폴더를 열고, 우클릭 하여 'Git Bash Here' 버튼을 누른다. 2. 아래 명령어를 순서대로 입력한다. $ git pull $ git add --all warning: in the working copy of '.project', LF will be replaced by CRLF the next time Git touches it warning: in the working copy of 'bin/log4j2.xml', LF will be replaced by CRLF the next time Git touches it warning: in the w..
더보기
-
[백준/Java] 10807번: 개수 세기
import java.util.ArrayList; import java.util.List; import java.util.Scanner; public class Main { public static void main(String[] args) { Scanner scan = new Scanner(System.in); int count = scan.nextInt(); List numList = new ArrayList(); for (int i = 0; i < count; i++) { numList.add(scan.nextInt()); } int specialNum = scan.nextInt(); scan.close(); int specialNumCnt = 0; for (int num : numList) { ..
더보기
-
[Vue+Bootstrap] Vue 프로젝트에서 cdn 방식으로 Bootstrap 라이브러리 import 하는 방법
1. 구글 검색창에 'cdnjs bootstrap' 검색 1-1. 아래 URL 접속 bootstrap - Libraries - cdnjs - The #1 free and open source CDN built to make life easier for developers The most popular front-end framework for developing responsive, mobile first projects on the web. - Simple. Fast. Reliable. Content delivery at its finest. cdnjs is a free and open-source CDN service trusted by over 12.5% of all websites, serving..
더보기
-
[Vue] Vue 3.x 버전 설치 및 환경 세팅
1. Node.js 설치 - Node.js 는 npm 을 사용하기 위해 설치하는 것 - 최신 버전으로 설치할 것 (최신 or 최신 LTS 버전 아니면 에러남) https://nodejs.org/ko/download/ 다운로드 | Node.js Node.js® is a JavaScript runtime built on Chrome's V8 JavaScript engine. nodejs.org 2. VSCode 설치 1) 메뉴바에서 Terminal > New Terminal 진입 npm install -g @vue/cli 2) Extension 설치 - Vetur 설치 - HTML CSS Support 설치 - Vue 3 Snippets 설치 여기까지 완료 되었다면 이제 뷰 프로젝트 생성을 시작해보자. 1...
더보기
-
[백준/Java] 다른 사람(맞힌 사람) 코드 보는 방법
풀고자 하는 문제의 다른 사람(맞힌 사람) 코드 보는 방법은 다음과 같다. 예) 2438번 문제 1. 맞힌 사람 클릭한다. 2. 원하는 언어를 선택한다. 예) Java 3. 언어 컬럼에서 파란 글씨로 적힌 Java 8을 클릭한다. 4. 코드를 확인한다. 끝
더보기
-
[백준/Java] 2439번: 별 찍기 - 2
import java.util.Scanner; public class Main { public static void main(String[] args) { Scanner scan = new Scanner(System.in); int cnt = scan.nextInt(); String str = " "; for (int i = 1; i = 1; j--) { if (j == i) str = "*"; System.out.print(str); } System.out.println(); } } } Scanner 대신 BufferedReader 를 사용하여, 소요시간 0.1초를 더 단축해보자 import java.io.*; public class Main { public static void main(String...
더보기
-
[백준/Java] 2438번: 별 찍기 - 1
30초 만에 풀기 도오전~? import java.util.Scanner; public class Main { public static void main(String[] args) { Scanner scan = new Scanner(System.in); int cnt = scan.nextInt(); for (int i = 0; i < cnt; i++) { for (int j = 0; j
더보기
-
[백준/Java] 11022번: A+B - 8
노가다 문제..ㅎ import java.util.Scanner; public class Main { public static void main(String[] args) { Scanner scan = new Scanner(System.in); int cnt = scan.nextInt(); for (int i = 1; i
더보기
-
[백준/Java] 25304번: 영수증
반복문을 활용해서 문제풀이에 접근해보자 import java.util.ArrayList; import java.util.Collections; import java.util.List; import java.util.Scanner; public class Main { public static void main(String[] args) { Scanner scan = new Scanner(System.in); int totalAmount = scan.nextInt(); int totalCount = scan.nextInt(); for (int i = 0; i < totalCount; i++) { int amount = scan.nextInt() * scan.nextInt(); totalAmount -= am..
더보기
-
[백준/Java] 2480번: 주사위 세개
노가다성 문제를 끝으로.. 조건문 완료~! import java.util.ArrayList; import java.util.Collections; import java.util.List; import java.util.Scanner; public class Main { public static void main(String[] args) { Scanner scan = new Scanner(System.in); List numberArr = new ArrayList(); numberArr.add(scan.nextInt()); numberArr.add(scan.nextInt()); numberArr.add(scan.nextInt()); Collections.sort(numberArr, Collections...
더보기
-
[백준/Java] 2525번: 오븐 시계
생각보다? 오래 걸린 문제... 맞았습니다만 너무 어렵게 접근 했다. import java.util.Scanner; public class Main { public static void main(String[] args) { Scanner scan = new Scanner(System.in); String time = scan.nextLine(); String[] timeArr = time.split(" "); int oriHour = Integer.parseInt(timeArr[0]); int oriMin = Integer.parseInt(timeArr[1]); int timeTaken = Integer.parseInt(scan.nextLine()); int cnt = 0; while (timeTake..
더보기
-
Spring Boot+JPA+H2 로 Test Code 실행 시 테이블 생성 안될 때
1. (Maven 프로젝트 일 경우) pom.xml 파일에 의존성 추가 org.springframework.boot spring-boot-starter-data-jpa 2.6.10 com.h2database h2 runtime 2. application-test.properties 파일에 DB 및 JPA 관련 설정 spring.datasource.driver-class-name = org.h2.Driver spring.datasource.url = jdbc:h2:mem:test spring.datasource.username = sa spring.datasource.password = sa spring.jpa.database-platform = org.hibernate.dialect.H2Dialect 3..
더보기