0.java等文件编译问题
如:
org.apache.ibatis.binding.BindingException: Invalid bound statement (not found):xxx
在pom.xml中build节点下面添加:
<!-- compile -->
<resources>
<resource>
<directory>src/main/java</directory>
<includes>
<include>**/*.xml</include>
</includes>
</resource>
<resource>
<directory>src/main/resources</directory>
<includes>
<include>**/*.*</include>
</includes>
</resource>
<resource>
<directory>src/main/webapp</directory>
<targetPath>META-INF/resources</targetPath>
<includes>
<include>**/*.*</include>
</includes>
</resource>
</resources>
System.out.println(str);
快捷键
str.sout
智能提示
2.springboot项目 热部署
pom中添加devtools依赖
<!-- 启动热部署 -->
<dependency>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-devtools</artifactId>
<optional>true</optional>
</dependency>
偶尔修改后不生效则需要重启项目。