Project 우클릭 > Properties > Java build path > Add Library > Class path에 junit 추가
Project 우클릭 > Properties > Java build path > Add Library > Class path에 junit 추가
에러
table 생성했는데 에러코드 1146 발생함
해결
테이블명에 . (온점)이 있어서 그럼
테이블명 변경
use 데이터베이스이름;
SHOW GLOBAL VARIABLES LIKE 'LOG_BIN_TRUST_FUNCTION_CREATORS';
입력하면 OFF로 되어 있음
SET GLOBAL LOG_BIN_TRUST_FUNCTION_CREATORS = 1;
쿼리를 입력해서 ON으로 만들어주면 프로시저 생성 가능
MySQL 8.0 이상 사용시 주의사항 (0) | 2024.06.03 |
---|---|
[MySQL] SCHEMA 및 테이블 생성 (0) | 2024.05.31 |
[MySQL] NOW(), SYSDATE() - 현재 시각을 조회하는 함수 (0) | 2023.06.04 |
Mysql 데이터 베이스 백업/복원 (0) | 2023.03.31 |
Mysql 데이터베이스 파일 다른 컴퓨터로 이동하는 방법 (0) | 2023.03.31 |
에러
Java compiler level does not match the version of the installed Java project facet.
원인
사용하는 java 버전과 이클립스 설정된 버전이 일치하지 않아서 발생하는 에러
해결
project 우클릭 > properties > project factes > 사용하고 있는 java 버전으로 변경
Junit test 없을 때 (0) | 2023.05.18 |
---|---|
table 생성했는데 에러코드 1146 발생함 (0) | 2023.05.18 |
cvc-id.3: a field of identity constraint 'web-app-filter-name-uniqueness' matched element 'web-app', but this element does not have a simple (0) | 2023.05.17 |
spring 에러 : resource specification not allowed here for source level below 1.7 (0) | 2023.05.16 |
Mybatis, Mybatis-spring 다운로드/의존성 추가 (0) | 2023.05.15 |
에러
cvc-id.3: a field of identity constraint 'web-app-filter-name-uniqueness' matched element 'web-app', but this element does not have a simple
해결
web.xml 상단 http://java.sum.com 부분에서 java를 JAVA 또는 Java로 변경
이유가 뭐지
table 생성했는데 에러코드 1146 발생함 (0) | 2023.05.18 |
---|---|
Java compiler level does not match the version of the installed Java project facet. (0) | 2023.05.17 |
spring 에러 : resource specification not allowed here for source level below 1.7 (0) | 2023.05.16 |
Mybatis, Mybatis-spring 다운로드/의존성 추가 (0) | 2023.05.15 |
의존성 주입이란? (0) | 2023.05.15 |
1. Ctrl + F 누르고 첫 번째 칸에 ^\R 입력 (이클립스에서는 \이게 W에 가로줄 그은 것으로 나옴)
첫 번째 칸에 입력된 것을 찾아서 (Find)
두 번째 칸에 입력된 값으로 바꿔주는 것(Replace with)
2. Regular expressions 선택
3. Replace All 클릭
[Spring]Project 동작 순서 (0) | 2023.06.03 |
---|---|
Spring framework 동작원리 (0) | 2023.06.03 |
[Spring]InternalResourceViewResolver를 이용한 View Page 지정(prefix, suffix) (1) | 2023.06.03 |
[Maven - repository] repository 삭제해도 될까/경로문제 (0) | 2023.05.28 |
spring - namespaces (0) | 2023.05.15 |
해당 OS 찾아 설치
Window(installer)
Download | DBeaver Community
Download Tested and verified for MS Windows, Linux and Mac OS X. Install: Windows installer – run installer executable. It will automatically upgrade version (if needed). MacOS DMG – just run it and drag-n-drop DBeaver into Applications. Debian package
dbeaver.io
1) dbeaver.exe 실행
2) 데이터베이스 > 새데이터베이스 연결 > MySQL 선택
3) database 이름 입력 > MySQL 패스워드 입력
4) 연결완료
MySQL 설치 (0) | 2024.05.29 |
---|---|
[STS3 재설치] (0) | 2023.05.27 |
Spring Legacy Project 개발환경 구축하기(참고 페이지) (0) | 2023.05.15 |
java version 변경시 (jdk 11 -> jdk 11.0.1) 설정 (0) | 2023.05.15 |
[Maven] maven 설치 및 환경설정 / cmd로 경로 확인 (1) | 2023.05.12 |
resource specification not allowed here for source level below 1.7
1.7 이상의 컴파일 환경임에도 1.7 이하의 버전이 환경설정에 적용되어 발생하는 에러
해결방법
1) pom.xml 파일 수정
1.7 이상 버전으로 수정
</plugin>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-compiler-plugin</artifactId>
<version>2.5.1</version>
<configuration>
<source>11.0.1</source>
<target>11.0.1</target>
<compilerArgument>-Xlint:all</compilerArgument>
<showWarnings>true</showWarnings>
<showDeprecation>true</showDeprecation>
</configuration>
</plugin>
<plugin>
2) project 우클릭 > properties > build path > Java Build Path > Libraries 탭 > JRE1.6~1.7 버전 있으면 삭제 후 Add Library 클릭 > JRE Sysem Library 추가
3) project 우클릭 > properties > build path > Java Compiler > JDK 버전 변경
Java compiler level does not match the version of the installed Java project facet. (0) | 2023.05.17 |
---|---|
cvc-id.3: a field of identity constraint 'web-app-filter-name-uniqueness' matched element 'web-app', but this element does not have a simple (0) | 2023.05.17 |
Mybatis, Mybatis-spring 다운로드/의존성 추가 (0) | 2023.05.15 |
의존성 주입이란? (0) | 2023.05.15 |
pom.xml 파일 수정 자세한 설명 (0) | 2023.05.15 |
[Spring]Project 동작 순서 (0) | 2023.06.03 |
---|---|
Spring framework 동작원리 (0) | 2023.06.03 |
[Spring]InternalResourceViewResolver를 이용한 View Page 지정(prefix, suffix) (1) | 2023.06.03 |
[Maven - repository] repository 삭제해도 될까/경로문제 (0) | 2023.05.28 |
이클립스 빈줄 제거 (0) | 2023.05.17 |
Mybatis 3.4.6 버전 jar 파일 다운로드
↓
https://mvnrepository.com/artifact/org.mybatis/mybatis/3.4.6
Mybatis-spring jar 다운로드
↓
https://mvnrepository.com/artifact/org.mybatis/mybatis-spring/1.3.2
mybatis 연동
↓
https://techhan.github.io/study/spring-07/
[spring] MyBatis 연동하기
코드로 배우는 스프링 웹 프로젝트
techhan.github.io
프로젝트 내 pom.xml 파일 라이브러리 추가
<!-- Spring JDBC -->
<dependency>
<groupId>org.springframework</groupId>
<artifactId>spring-jdbc</artifactId>
<version>${org.springframework-version}</version>
</dependency>
<!-- https://mvnrepository.com/artifact/org.mybatis/mybatis -->
<dependency>
<groupId>org.mybatis</groupId>
<artifactId>mybatis</artifactId>
<version>3.4.6</version>
</dependency>
<!-- https://mvnrepository.com/artifact/org.mybatis/mybatis-spring -->
<dependency>
<groupId>org.mybatis</groupId>
<artifactId>mybatis-spring</artifactId>
<version>1.3.2</version>
</dependency>
cvc-id.3: a field of identity constraint 'web-app-filter-name-uniqueness' matched element 'web-app', but this element does not have a simple (0) | 2023.05.17 |
---|---|
spring 에러 : resource specification not allowed here for source level below 1.7 (0) | 2023.05.16 |
의존성 주입이란? (0) | 2023.05.15 |
pom.xml 파일 수정 자세한 설명 (0) | 2023.05.15 |
JAVA 버전에 대한 궁금증 11, 1.6, 1.8 (0) | 2023.05.15 |