报错集锦1
1.数据库编码错误
我写的:@Insert("insert into product(productNum,productName,cityName,departureTime,productPrice,productDesc,productStatus)values(#{productNum},#{productName},#{cityName},#{departureTime),#{productPrice},#{productDesc},#{productStatus})")
资料写的:@Insert("insert into product(productNum,productName,cityName,departureTime,productPrice,productDesc,productStatus) values(#{productNum},#{productName},#{cityName},#{departureTime},#{productPrice},#{productDesc},#{productStatus})")
报错显示
mybatis的SQL语句错误
前端页面映射错误
2.spring security错误
<!-- 切换成数据库中的用户名和密码 这里@Service("UserService")匹配下面user-service-ref而不是类名-->
<security:authentication-manager>
<security:authentication-provider user-service-ref="UserService">
<!--<!– 配置加密的方式–>-->
<!--<security:password-encoder ref="passwordEncoder"/>-->
</security:authentication-provider>
</security:authentication-manager>
Encoded password does not look like BCrypt
there is no passwordEncoder mapped for the id null