映射文件UserMapper.xml中namespace应该填写接口的位置,即<mapper namespace="com.springdemo.dao.UserMapper" >而不是com.springdemo.mapping.UserMapper
映射文件UserMapper.xml中namespace应该填写接口的位置,即<mapper namespace="com.springdemo.dao.UserMapper" >而不是com.springdemo.mapping.UserMapper