Project 우클릭 > Properties > Java build path > Add Library > Class path에 junit 추가

 

 

에러

table 생성했는데 에러코드 1146 발생함

 

해결

테이블명에 . (온점)이 있어서 그럼

테이블명 변경

1. Mysql command 접속

use 데이터베이스이름;

 

SHOW GLOBAL VARIABLES LIKE 'LOG_BIN_TRUST_FUNCTION_CREATORS';

입력하면 OFF로 되어 있음

 

 

SET GLOBAL LOG_BIN_TRUST_FUNCTION_CREATORS = 1;

쿼리를 입력해서 ON으로 만들어주면 프로시저 생성 가능

 

 

 

 

 

 

에러

Java compiler level does not match the version of the installed Java project facet.

 

원인

사용하는 java 버전과 이클립스 설정된 버전이 일치하지 않아서 발생하는 에러

 

해결

project 우클릭 > properties > project factes > 사용하고 있는 java 버전으로 변경

 

 

에러

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로 변경

 

이유가 뭐지

1. Ctrl + F 누르고 첫 번째 칸에 ^\R 입력 (이클립스에서는 \이게 W에 가로줄 그은 것으로 나옴)

첫 번째 칸에 입력된 것을 찾아서 (Find)

두 번째 칸에 입력된 값으로 바꿔주는 것(Replace with)

2. Regular expressions 선택 

3. Replace All 클릭

 

 

1. 설치

 

해당 OS 찾아 설치

Window(installer)

 

https://dbeaver.io/download/

 

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

 

 

 

 

2. 연결(MySQL)

 

1) dbeaver.exe 실행

2) 데이터베이스 > 새데이터베이스 연결 > MySQL 선택 

3) database 이름 입력 > MySQL 패스워드 입력 

4) 연결완료

 

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 버전 변경 

 

1. 프로젝트 

src/main/webapp/WEB-INF/spring/root-context.xml 우클릭 > Open With > Other

 

 

 

2. spring 검색 > Spring Config Editor

 

 

 

 

 

3. 하단의 Namespaces 클릭

 

 

1. 다운로드

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

 

2. 의존성 추가

 

프로젝트 내 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>

+ Recent posts