报错集锦1

报错集锦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">
        <!--&lt;!&ndash; 配置加密的方式&ndash;&gt;-->
        <!--<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

打赏一个呗

取消

感谢您的支持,我会继续努力的!

扫码支持
扫码支持
扫码打赏,你说多少就多少

打开支付宝扫一扫,即可进行扫码打赏哦