1. idea怎么配置tomcat
1)配置tomcat应用服务器
File->Settings...
Build,Execution,Deployment ->Application Servers
点击"+"号,选择"Tomcat Server"
选中tomcat 的地址,点击OK
2)配置web应用
Defaults->TomcatServer
点击"+"号,
Server tab页,修改Name ,Applicaton server 下拉框选择刚才配置的Tomcat应用服务器。
Deployment目录选择要部署的web应用,专注意此处一定要选到WebContent文件夹,即WEB-INF上的上一级目录:
点击OK,并配置应用的上下文路径:属
3)修改编译输出路径。
工程->右键->Open Mole Settings
选择Paths tab页,将output path:配置到WEB-INF\classes中,否则会找不到类。
4)启动tomcat
2. IntelliJ IDEA 2022 自定义配置及系统文件 window
默认IntelliJ IDEA产生在C盘文件 的位置
IDEA 修改配置文件的位置:
你安装软件bin的同级目录下:
eg:
````
# Use ${idea.home.path} macro to specify location relative to IDE installation home.
# Use ${xxx} where xxx is any Java property (including defined in previous lines of this file) to refer to its value.
# Note for Windows users: please make sure you're using forward slashes (e.g. c:/idea/system)
.#--------------------------------------------------------------------
-# Uncomment this option if you want to customize path to IDE config folder. Make sure you're using forward slashes.
#---------------------------------------------------------------------
idea.config.path=${user.home}/.IdeaIC/config
#---------------------------------------------------------------------
# Uncomment this option if you want to customize path to IDE system folder. Make sure you're using forward slashes.
#---------------------------------------------------------------------idea.system.path=${user.home}/.IdeaIC/system
````
````
Syntax%APPDATA%JetBrains
ExampleC:.1
````
您可以使用IDEA .config.path属性更改IntelliJ IDEA配置目录的位置。
````
Syntax%LOCALAPPDATA%JetBrains
ExampleC:.1
````
您可以使用IDEA .system.path属性更改IntelliJ IDEA系统目录的位置。
一般这个目录文件比较大,所以修改这个文件则可以
修改后:
这样就可以把原来默认目录下的文件删除掉,减少C盘的空间
具体请查看官网文档:
https://www.jetbrains.com/help/idea/directories-used-by-the-ide-to-store-settings-caches-plugins-and-logs.html#plugins-directory