This application has no explicit mapping for /error, so you are seeing this as a fallback.
Tue Dec 18 10:46:47 PST 2018
There was an unexpected error (type=Internal Server Error, status=500).
Invalid bound statement (not found): com.miaoshaproject.dao.UserDOMapper.selectByPrimaryKey
配置文件会不会写错了 mybatis.mapper-locations=classpath:mapping/*.xml
mybatis-generater.xml中的connectionURL,加参数&nullCatalogMeansCurrent=true:
然后执行,userDOMapper.xml 里面就会有selectByPrimaryKey
<!--数据库链接地址账号密码-->
<jdbcConnection driverClass="com.mysql.cj.jdbc.Driver"那你看下 USERDOMapper.xml 里面的 namespace 是不是写错了
userDOMapper.xml 里面没有 selectByPrimaryKey