Idea配置application启动Springmvc项目

配置整体工程

1.首先进入File–>Project Structure…目录下

idea 添加hive2 driver idea添加application_java

2.设置Project Setting–>Project,此处主要配置工程的相关信息

idea 添加hive2 driver idea添加application_java_02

3.设置Project Setting–>Modules,此处主要对模块下的文件进行资源标记

idea 添加hive2 driver idea添加application_数据库_03

idea 添加hive2 driver idea添加application_idea 添加hive2 driver_04

idea 添加hive2 driver idea添加application_数据库_05

4.设置设置Project Setting–>Libraies,此处主要

idea 添加hive2 driver idea添加application_数据库_06

5.设置Project Setting–>Facets

idea 添加hive2 driver idea添加application_tomcat_07

6.设置Project Setting–>Artifacts

idea 添加hive2 driver idea添加application_java_08

配置application启动

1.首先编辑application配置

idea 添加hive2 driver idea添加application_java_09

2.打开如下界面,在右侧进行参数设置

idea 添加hive2 driver idea添加application_idea 添加hive2 driver_10

参数如下:

VM options:

-Dcatalina.home="D:\zixuan\source\tomcat8\tomcat8"
-Djava.endorsed.dirs="D:\zixuan\source\tomcat8\tomcat8\common\endorsed"
-Dcatalina.base="D:\zixuan\source\tomcat8\tomcat8"
-Denv.host="http://192.168.1.100.92"
-Denv.ahost="http://192.168.0.200:92/attach"

Main class:

org.apache.catalina.startup.Bootstrap

Program argument:

-config
"D:\zixuan\source\tomcat8\tomcat8\conf\devlop_future_t_server_idea.xml"
start

Working directory:

D:\zixuan\development\java\ideaproject\devlop_future

开发环境:

spring.profiles.active=dev