![](https://img-blog.csdnimg.cn/20201014180756928.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
tomcat
LT_1029
码农
展开
-
idea配置tomcat的方法(详细图文步骤)
1.打开idea,在项目运行列表下拉选择“edit Configurations”2.在打开的界面,点击“+”,再选择下面的Tomcat Server下的local3.在打开的界面,第一行“Name”中填入tomcat的名称然后点击Configure...,在Application Servers界面,点击“+”,在Tomcat Server配置界面选择要添加的tomcat...原创 2019-02-27 15:04:04 · 121174 阅读 · 6 评论 -
把spring-boot项目部署到tomcat中的方法
1、修改打包类型在pom.xml里设置<packaging>war</packaging>2、移除嵌入式tomcat插件在pom.xml里找到spring-boot-starter-web依赖节点,在其中添加如下代码,<dependency> <groupId>org.springframework.boot</grou...原创 2019-02-25 18:04:42 · 7700 阅读 · 4 评论 -
java类获取项目运行的tomcat根路径
String classpath = "/D:/tomcat/webapps/test/WEB-INF/classes/";String cp = classpath.substring(1);//cp=D:/tomcat/webapps/test/WEB-INF/classes/String rootPath = cp.split("/WEB-INF/")[0];System.out.p...原创 2019-03-07 16:56:55 · 1315 阅读 · 0 评论