mybatis的简单应用 driver=oracle.jdbc.driver.OracleDriverurl=jdbc:oracle:thin:@localhost:1521:orclusername=c##zspassword=123package org.jxnd.dao;import java.util.List;import org.apache.ibatis.annotations.Param;import org.jxnd.bean.UserI
driver=oracle.jdbc.driver.OracleDriver url=jdbc:oracle:thin:@localhost:1521:orcl username=c##zs password=123 package org.jxnd.dao; import java.util.List; import org.apache.ibatis.annotations.Param; import org.jxnd.bean.UserInfo; public interface UserInfoDao { List getUserAll(); UserInfo getUserById(int id); int add(UserInfo info); UserInfo selectByNameAndPwd(@Param("name") String name,@Param("pwd") String pwd); }