1.正常启动服务器发现抱错
出错原因
SpringBoot版本号太高导致的问题
如何解决
在配置文件中添加配置
yml
spring:
mvc:
pathmatch:
matching-strategy: ant_path_matcher
2.org.apache.ibatis.binding.BindingException: Invalid bound statement (not found):XXX
经过检查发现是在配置文件cv的时候把mybatis的配置打乱了 ,所以绑定不到
注意yml的空格问题,经过重新配置后就正常了
mybatis:
mapper-locations: classpath:mapper/*.xml
configuration:
log-impl: org.apache.ibatis.logging.stdout.StdOutImpl
map-underscore-to-camel-case: true
3.doc.html一直打不开 报错404
其中有一个坑,就是前端的端口是90,后端端口8080,生成接口文档一定是输入后端接口
http://localhost:8080/doc.html#/home
改完这个问题后发现仍然显示不出来接口文档,对应界面一直读取不出来,最后经过检查发现,在webmvcconfig文件进行资源放行的时候copy出错
一定要注意idea下边的提示!!!!!!!!