1. Check the sqlsession configuration in the ApplicationContext file. Check the MyBatis configuration file.
2. Check that the Transdispatchingmapper.java is an interface class with no annotations.
3.transdispatchingmapper.xml namespace is the address of the Transdispatchingmapper interface class, this can not be written wrong, otherwise it will error.
4.xml file format requirements Strict, such as greater than, less than, the comment symbol more than a few--the first line of the file left a space, ${} written in parentheses, etc., will error, so in addition to careful or careful, in the development process encountered this problem, wasted 2 hours of the wrong time, the final SQL error.
UPDATE SET update_time=Now (), dispatching_flag=2 , new_owner_no= #{newownerno], new_car_no=#{newcarno},new_rent_amt=#{newrentamt},new_ Insurance=#{newinsurance} WHERE order_no= and Car_no =#{carno}
is ${} and not ${], but the start error message also reported vague, error message means that the Sqlmap ID has existed.
MyBatis Start Error mapped statements collection already contains value for Com.autoyol.mapper.trans.TransDispatchingMapper Resolve