问答详情
源自:5-3 一对多关系的配置 Ⅲ

进入到微信公众号页面,回复 段子 出现问题

org.apache.ibatis.exceptions.PersistenceException: 

### Error querying database.  Cause: org.apache.ibatis.reflection.ReflectionException: Error instantiating class com.java.bean.CommandContent with invalid types () or values (). Cause: java.lang.NoSuchMethodException: com.java.bean.CommandContent.<init>()

### The error may exist in com/java/config/sqlxml/Command.xml

### The error may involve Command.queryCommandList-Inline

### The error occurred while setting parameters

### SQL: select a.ID C_ID,a.NAME,a.DESCRIPTION,b.ID,b.CONTENT,b.COMMAND_ID      from command a left join command_content b     on a.ID=b.COMMAND_ID             and NAME=?

### Cause: org.apache.ibatis.reflection.ReflectionException: Error instantiating class com.java.bean.CommandContent with invalid types () or values (). Cause: java.lang.NoSuchMethodException: com.java.bean.CommandContent.<init>()


提问者:qq_慕圣3596141 2019-03-18 09:49

个回答

  • 胆拙0055973
    2019-07-16 15:45:44

    sql  拼写错了