When I click submit in localhost:8080/myregister.jsp(controller: localhost:8080/user/register),it gets:
Request processing failed; nested exception is org.apache.ibatis.binding.BindingException: Invalid bound statement (not found): com.cn.hnust.dao.UserMapper.insert
When I click submit in localhost:8080/login.jsp,(controller: localhost:8080/user/login),it works.
[MYSQL:
DROP TABLE IF EXISTS user_t
;
CREATE TABLE user_t
(
username
varchar(40) NOT NULL,
password
varchar(255) NOT NULL,
PRIMARY KEY (username
)
) ENGINE=InnoDB DEFAULT CHARSET=utf8;
]
I use mybatis-generator-core-1.3.2 to general UserMapper.xml,but why only the 'insert' function can't run?
The whole Maven project is in github:https://github.com/Bonsen/Spring-SpringMVC-mybatis.