Eclipse Maven Spring SpringMVC Mybatis 整合
新项目自己撘框架,想着用点新的。看慕课网 Java 高并发秒杀 API 的系列课程时很受益。所以想着仿着来使用:Mavan-Spring-SpringMVC-Mybatis 的架构。框架整合的代码我已上传到我的 Github:maven-mybatis-spring-springmvc。 本示例是在:Ubuntu15 上实现的;Windows 上安装 Maven 将不太相同。 Maven Install 2016-09-10 更新:较新版 Eclipse 都有集成 Maven,所以并不需要安装 Run command sudo apt-get install maven, to install the latest Apache Maven. Run command mvn -version to verify your installation. Where is Maven installed? The command apt-get install the Maven in /usr/share/maven The Maven configuration files are stored in /etc/maven Eclipse Maven Plugin - m2e 2016-09-10 更新:较新版 Eclipse 都有集成 Maven,所以并不需要安装 open Eclipse -> Help -> click “Install New Software” -> click “add” Name:m2e Location:http://download.eclipse.org/technology/m2e/releases click “ok” -> click “Maven Integration for Eclipse” -> click “Next” restrat Eclipse config m2e -> Window -> Preferences -> Maven -> Installations -> click “Add…” -> select Maven Create a Maven Project File -> New -> New Maven project select “Use default Workspace location” select “maven-archetype-j2ee-simple” input info -> Finish 选中项目右键菜单中选择 Properties -> Project Facets -> select “Dynamic Web Module” Version “3.1” Tips: ...