(1)下载jdk,maven和tomcat
jdk-7u79-macosx-x64
apache-maven-3.3.9
apache-tomcat-7.0.67
(2)配置JDK
IntelliJ IDEA -> Preferences -> Build, Execution, Deployment -> Compiler -> Java Compiler
Project bytecode version: 1.7
File -> Project Structure -> Project Setting -> Project
Project SDK: 1.7
Project Language Level: 7
File -> Project Structure -> Project Setting -> Modules
xxxWeb -> Dependency
Module SDK: 1.7
(3)配置maven
IntelliJ IDEA -> Preferences -> Build, Execution, Deployment -> Build Tools -> Maven
Maven home directory: /Users/thzt/Software/apache-maven-3.0.5
User settings file: /Users/thzt/Software/apache-maven-3.0.5/conf/settings-xxx.xml (override)
Local repository: /Users/thzt/.m2/repository (override)
(4)配置tomcat
IntelliJ IDEA -> Preferences -> Build, Execution, Deployment -> Application Servers
+ -> Tomcat Server -> Tomcat Home
Run -> Edit Configurations
+ -> Tomcat Server -> Local
Deployment -> + -> Artifact ->xxxWeb:war exploded
Application context: /xxxWeb
网友评论