Maven鎼徐SpringMVC+Mybatis椤圭洰璇﹁В

Maven鎼缓SpringMVC+Mybatis椤圭洰璇﹁В

鍒氬ソ瑕佸缓椤圭洰锛屾妸瑕佺敤鍒扮殑涓滆タ閮藉彫闆嗕簡涓€涓嬶紝甯屾湜瀵逛綘浠湁鐢ㄣ€傦紙娴嬭瘯椤圭洰宸插缓濂斤紝涓婁紶鏃跺嚭鐜伴棶棰橈紝鏈夐渶瑕佺殑鍙互鎵炬垜锛?/p>

1.聽Maven鐜鎼缓鍜屼粙缁嶏細

http://blog.****.net/fengshizty/article/details/43019561

2.IDEA鍒涘缓Maven椤圭洰鏁欑▼锛?/p>

http://blog.****.net/u011424470/article/details/52062133

3.浣跨敤Generator鑷姩鐢熸垚Mybatis鐩稿叧琛ㄤ俊鎭?/p>

聽 聽 聽 鑷姩鐢熸垚琛ㄧ殑Model锛孧apping锛孌ao鏂囦欢锛屽厛鍏充娇鐢ㄨ鏂囩珷 http://blog.****.net/fengshizty/article/details/43086833聽

骞跺皢鍏跺鍏ュ埌椤圭洰鐨剆rc/main/java鍖呬腑銆?/p>

4.Maven鎼缓SpringMVC+Mybatis椤圭洰璇﹁В锛?/p>

http://blog.****.net/u011424470/article/details/52067766

5.椤圭洰鍒涘缓鍚庯紝mvn clean鐨勬椂鍊檓apper鏂囦欢澶规病鏈夎缂栬瘧锛岃В鍐冲姙娉曞涓嬶細

pom.xml鏂囦欢閲岃竟鍔犱笂锛?/p>

<resources>
    <!--澧炲姞.properties 鍜?.xml鎵撳寘缂栬瘧鎻掍欢-->
<resource>
        <directory>src/main/java</directory>
        <includes>
            <include>**/*.properties</include>
            <include>**/*.xml</include>
        </includes>
        <filtering>false</filtering>
    </resource>
</resources>

聽鍐嶆缂栬瘧鐨勬椂鍊?聽mapper鏂囦欢澶瑰氨浼氳缂栬瘧銆?/p>


Maven鎼徐SpringMVC+Mybatis椤圭洰璇﹁В