美文网首页Java
[IDE] IntelliJ IDEA在mac上的配置

[IDE] IntelliJ IDEA在mac上的配置

作者: 何幻 | 来源:发表于2016-03-07 07:18 被阅读1845次

(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

相关文章

网友评论

    本文标题:[IDE] IntelliJ IDEA在mac上的配置

    本文链接:https://www.haomeiwen.com/subject/qtrnkttx.html