idea下maven,mybatis+spring的搭建-1
阿新 • • 發佈:2019-01-05
1.在用maven建ssm工程時,在pom.xml中加入以下程式碼<build> <finalName>Mybatis1</finalName> <resources> <resource> <directory>src/main/java</directory> <includes> <include>**/*.properties</include> <include>**/*.xml</include> </includes> <filtering>false</filtering> </resource> <resource> <directory>src/main/resources</directory> <includes> <include>**/*.properties</include> <include>**/*.xml</include> </includes> <filtering>false</filtering> </resource> </resources></build>2.在用maven倉庫,使用jdk1.8以上時在pom.xml中加入以下程式碼