我是一个春季引导的新手,我想让我的spring引导应用程序集成到mybatis和mysql数据库中。我用生成器生成实体、映射器接口和映射器xml文件。我还使用@MapperScan注释告诉应用程序如何找到映射器,我的application.yml如下所示:
spring:
datasource:
username: root
password:
url: jdbc:mysql://localhost:3306/bidding
driver-class-name: com.mysql.jdbc.Driver
mybatis:
mapperLocations: classpath:mapping/*.xml但是,当我使用命令'mvn spring-boot: run‘运行应用程序时,它总是会给出错误消息’无效绑定语句(not )‘。
我的代码里有遗漏什么吗?
发布于 2016-02-25 08:34:12
内存接口和xml的映射有问题。
https://stackoverflow.com/questions/35621024
复制相似问题