![](https://img-blog.csdnimg.cn/20201014180756930.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
java
deyia.
这个作者很懒,什么都没留下…
展开
-
Parameter index out of range (2 > number of…错误
<select id="queryBookByName" resultType="Books"> /* select * from books where bookName like #{bookName}*/ select * from books where bookName like "%" #{bookName} "%" </select>原因居然是里面有注释,把注释去掉就好了...原创 2020-05-12 10:28:08 · 226 阅读 · 0 评论 -
报Access denied for user '13454'@'localhost' (using password: YES)错误
报如下错误org.mybatis.spring.MyBatisSystemException: nested exception is org.apache.ibatis.exceptions.PersistenceException: ### Error querying database. Cause: org.springframework.jdbc.CannotGetJdbcConnectionException: Failed to obtain JDBC Connection; neste原创 2020-05-11 11:49:55 · 162 阅读 · 0 评论 -
@Qualifier()注解报错
@Qualifier("BooksServiceImpl") private BookService bookService;这里提示我报错,检查发现是因为 BooksServiceImpl 写错了,@Qualifier(“BooksServiceImpl”)对应的是下面的id,有可能跟类名不一致<bean id="BookServiceImpl" class="com.service.BooksServiceImpl"> <property name="bo原创 2020-05-10 21:26:49 · 2020 阅读 · 0 评论