Among Us - Crewmates
To make each day count

분류 전체보기 33

[Spring] STS 한글 깨짐 / 인코딩 방법

spring에서 새로운 프로젝트를 시작하여 기본적으로 생성되는 HomeController와 /views/home.jsp를 통하여 화면을 보여준다. (기본 브라우저 => chrome으로 바꾼 상태) 한글 부분이 출력되지 않는 것을 고쳐보도록 하자. 1. 설정에서 인코딩 방식을 "UTF-8"로 바꾼다. Window -> Preferences CSS FIles, HTML Files, JSP Files의 Encoding을 사진과 같이 ISO 10646/Unicode(UTF-8)로 바꿔준다. 2. WEB-INF / web.xml 에 한글 깨짐 방지 코드를 추가해 준다. 과 사이에 넣어주면 된다. 헷갈리지 않게 밑에 넣었다. encodingFilter org.springframework.web.filter.Char..

[MySQL] like문

like문 : 패턴 매칭을 사용하여 특정 문자열을 검색하는 데 사용한다. 예시를 위해 학생 정보가 들어있는 'student' table과 학과 정보가 들어있는 'department' table을 형성하였다. select * from student; select * from department; ※ 만약 student_name이 '바학생'인 학생의 과를 구하려면 어떻게 해야 할까? select s.student_name 학생이름, d.department_name as 과명 from student s join department d on s.department_code = d.department_code where s.student_name = '바학생'; where 조건절을 사용하여 조건에 만족하는 값을 ..

[MySQL] MySQL에 메모장 txt 저장하기

컴퓨터를 바꾸거나 다른 팀원들과 협업을 할 때, 내 PC에 DB를 일일이 넣어주는 것은 여간 귀찮은 일이다. 그래서 DB값을 넣은 팀원에게 sql을 받아서 DB에 값을 저장해 보자. 값을 넣으려면 우선 MySQL이 설치되어 있는 곳이 어디인지 알아야 한다. 현재 내 컴퓨터의 설치 위치는 저기이다. 그곳의 주소값을 복사하도록 하자. 두 번째로는 sql을 받아서 저장한 곳의 위치를 알아야 한다. 예를 들어 밑에 사진처럼 저장했다면 c:/java/shopping.sql이다. 다음 명령프롬포트(cmd)를 실행한다. cd C:\Program Files\MySQL\MySQL Server 8.0\bin 아까 복사한 주소 값을 cd 뒤에 넣어준다. sql에 접속한다. mysql -u 아이디-p 자신의 DB 비밀번호를 ..

[Oracle DB] Port 8080 required by Tomcat v9.0 Server at localhost is already in use. The server may already be running in another process, or a system process may be using the port. To start this server you will need to stop the other process or change ..

Port 8080 required by Tomcat v9.0 Server at localhost is already in use. The server may already be running in another process, or a system process may be using the port. To start this server you will need to stop the other process or change the port number(s). 파파고 해석 : 로컬 호스트에서 Tomcat v9.0 Server에 의해 필요한 포트 8080 서버를 이미 사용합니다. 서버가 이미 다른 프로세스에서 실행되거나 시스템 프로세스가 실행될 수 있습니다. 이 서버를 시작하려면 다른 프로세스를 중지하거..

Error Solution 2024.03.20

[Oracle DB] 상태: 실패 -테스트 실패: ORA-01017: invalid username/password; logon denied

상태: 실패 -테스트 실패: ORA-01017: invalid username/password; logon denied Oracle SQL Developer를 실행하여 데이터 베이스를 생성하려고 하는데 잘못된 사용자의 이름과 비밀번호라고 로그온을 거부하고 있다. 1. 명령 프롬포트 (cmd)를 실행하여 준다. 2. sql 접속 3. 설치 시에 넣었던 아이디, 비밀번호 입력 4. 위의 그림처럼 접속이 완료되었다면 아래 명령어를 통해서 사용자 생성 (소문자 상관 X) CREATE USER 아이디 IDENTIFIED BY "비밀번호"; 5. 그다음은 그 아이디에게 데이터 베이스에 접속할 수 있는 권한을 주자 GRANT CONNECT, RESOURCE TO 아이디; 6. Oracle SQL Developer 화..

Error Solution 2024.03.15

[Tomcat] The server cannot be started because one or more of the ports are invalid. Open the server editor and correct the invalid ports 해결 방법

The server cannot be started because one or more of the ports are invalid. Open the server editor and correct the invalid ports. 1. 하단에 Servers 창 "Tomcat v9.0 Server at loaclhost" 더블 클릭 (설치 버전은 다를 수 있음) 2. Overview - Tomcat admin port 에 Port Number 를 '8005' 로 입력 후 저장 3. 설정은 끝! 잘 실행되는지 확인

Error Solution 2024.03.04