Created
January 6, 2017 06:58
-
-
Save enujo/cf3f49eb19c73e34fcce014f4a19e08c 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
package com.tistory.luahius.service; | |
import org.mybatis.spring.SqlSessionTemplate; | |
import org.springframework.beans.factory.annotation.Autowired; | |
import org.springframework.stereotype.Repository; | |
@Repository | |
public class BoardDaoImpl implements BoardDao{ | |
@Autowired | |
private SqlSessionTemplate sqlSession; | |
private final String BOARD_NS="com.tistory.luahius.BoardMapper."; | |
@Override | |
public int insertBoard(Board board) { | |
return sqlSession.insert(BOARD_NS+"boardAdd", board); | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment