dao实现类继承了JdbcDaoSupport类
public class LoginDAOImpl extends JdbcDaoSupport implements LoginDAO {
daoimpl 中的方法
@Override
public java.util.List
String sql = "select * from menu_info where fatherCode=?";
java.util.List<Menu> list = this.getJdbcTemplate().query(sql, new BeanPropertyRowMapper<Menu>(Menu.class),code);
return list;
}
浏览器信息:
HTTP Status 400 -
type Status report
message
description The request sent by the client was syntactically incorrect.
Apache Tomcat/7.0.50
----------------------------------------------------------------------------
后台没有报错,方法执行到 jdbcTemple的 querry 时就停止了。
如果把 sql中的?去掉 方法中不加参数的话可以查到数据
求大神答疑解惑