일단 서버가 돌아가요 여러분 동네 사람들

Juju·2022년 11월 16일
0

pom.xml dependency 설정, application.properties 똑같이 안했음.
이라고 해서

https://data-make.tistory.com/551

이거랑 똑같이 맞춰줬써영



<<<<여기진짜 중요!!! sql-board파일이랑 UTF 안맞춰져있으면 안댐.>>>>

pom.xml도 정리할꺼 다 정리하고 경로랑 바꿔줌
.
.
.

뭐가 돌아가기는 하는데

Loading class `com.mysql.jdbc.Driver'. This is deprecated. The new driver class is `com.mysql.cj.jdbc.Driver'. The driver is automatically registered via the SPI and manual loading of the driver class is generally unnecessary.

경고메세지가 안 없어져영 유후

인텔리제이로 DB연결하고
sql-mapper에

<select id="selectBoardDetail" parameterType="int" resultType="board.board.dto.BoardDto">
		<![CDATA[
			SELECT
				board_idx,
				title,
				contents,
				hit_cnt,
				DATE_FORMAT(created_datetime, '%Y.%m.%d %H:%i:%s') AS created_datetime,
				creator_id
			FROM
				t_board
			WHERE
				board_idx = #{boardIdx}
				AND deleted_yn = 'N'
		]]>
	</select>

이거넣어주니까 또 똑같은 에러나서 뭔가 싶어서

바꿔줬더니 에러 안남.

진짜 3일동안 개똥꼬쇼햇는대....

profile
짤막한 기록들..

0개의 댓글