며칠동안 애먹었던 부분이다..
분명 pom.xml에서도 추가해서 수정한거같은데
<dependency>
<groupId>com.googlecode.log4jdbc</groupId>
<artifactId>log4jdbc</artifactId>
<version>1.2</version>
<exclusions>
<exclusion>
<artifactId>slf4j-api</artifactId>
<groupId>org.slf4j</groupId>
</exclusion>
</exclusions>
</dependency>
<dependency>
<groupId>commons-dbcp</groupId>
<artifactId>commons-dbcp</artifactId>
<version>1.4</version>
</dependency>
<dependency>
<groupId>mysql</groupId>
<artifactId>mysql-connector-java</artifactId>
<version>5.1.31</version>
</dependency>
<dependency>
<groupId>org.springframework.security</groupId>
<artifactId>spring-security-core</artifactId>
<version>5.7.3</version> <!-- Use the version compatible with your Spring version -->
</dependency>
그래도 마이바티스를 인식하지 못했다
그래서 원래 전자정부프레임워크가 Ibatis기반인걸 알게됬고
config파일이 ibatis꺼랑 mybatis꺼랑 2개 인걸 확인하고
contextmapper.xml과 sql-mapper-config.xml을 수정해서
MariaDB와 connect할수있게 되었다.
며칠째 DB랑 연결이 안되서 여러블로그를 찾아봤었는데
별거아닌거였던것이다ㅠ..
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE mapper PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" "http://mybatis.org/dtd/mybatis-3-mapper.dtd">
<mapper namespace="egovframework.example.bbs.repository.BoardMapper">
<resultMap id="board" type="egovframework.example.bbs.model.BoardVO">
mapper.xml파일에서도 이렇게 매핑을 시켜줘야 한다