dao层:
xml:
service层:
收起
login这条sql的where条件不要加and password = #{password},只根据username去查,然后在service进行password对比,而且不要substring,这样可能不准
报告相同问题?