Created
January 6, 2017 07:11
-
-
Save enujo/0c7bda9d911d52893fa8d06999264fdf to your computer and use it in GitHub Desktop.
spring mvc insert
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?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="com.tistory.luahius.BoardMapper"> | |
<insert id="boardAdd" parameterType="com.tistory.luahius.service.Board"> | |
INSERT INTO board( | |
board_pw, | |
board_title, | |
board_content, | |
board_user, | |
board_date | |
) values( | |
#{boardPw}, | |
#{boardTitle}, | |
#{boardContent}, | |
#{boardUser}, | |
now() | |
) | |
</insert> | |
</mapper> | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment