文章目录
template might not exist or might not be accessible by any of the configured Template Resolvers
- 在controller层未添加RequestBody导致 template 模板无法解析
Failed to determine a suitable driver class (eclipse)
报错如下 :
***************************
APPLICATION FAILED TO START
***************************
Description:
Failed to configure a DataSource: 'url' attribute is not specified and no embedded datasource could be configured.
Reason: Failed to determine a suitable driver class
Action:
Consider the following:
If you want an embedded database (H2, HSQL or Derby), please put it on the classpath.
If you have database settings to be loaded from a particular profile you may need to activate it (no profiles are currently active).
原因在于自己的application.yml文件没有被项目扫描到
在pom中添加:
<resources>
<resource>
<directory>src/main/resources</directory>
<excludes>
</excludes>
<includes>
<include> **/*.yml</include>
<include>**/*.xml</include>
</includes>
<filtering>false</filtering>
</resource>
</resources>
Invalid bound statement (not found)
1.mapper中的名称与dao层没有对上
2.配置文件没有对mapper xml文件扫描
mybatis:
mapper-locations:
- classpath:mapper/*.xml