#mybatis是独立节点,需要单独配置
mybatis:
mapper-locations: classpath*:mapper/*.xml
#必须是类路径下的xml,所以需要讲xml放在resource目录下
type-aliases-package: com.wsx.demo.entity
configuration:
map-underscore-to-camel-case: true
不然会报错
org.apache.ibatis.binding.BindingException: Invalid bound statement (not found)