程序猿日常
新项目启动,直接复制老项目进行修改,记录下复制过程
1.复制项目,修改项目文件夹名称为xxx 为新项目名称
2.进入项目文件夹删除隐藏的.idea文件夹
3.启动IDEA,选择Import Project ,不要直接选择Open
4.Open Module Setting -> Modules ->main->resources 设置该文件夹为Sources,因为这文件夹下存在配置文件
5.Open Module Setting ->Facets->Create Artifact
6.会自动创建Artifact
点击lib,将lib中的jar包进行部署
点击添加Module Sources
7.修改Name为xxx,修改Output directory ,指定到tomcat的app目录下
8.Add Configuration
9.tomcat server 修改标题为xxx,点击添加artifacts
10.点击Deployment,点击加号,点击Artifact…
点击Apply,点击OK
11.报错信息: Illegal access: this web application instance has been stopped already. Could not load com.google.gson.internal.bind.TypeAdapters$31. The eventual following stack trace is caused by an error thrown for debugging purposes as well as to attempt to terminate the thread which caused the illegal access, and has no functional impact.
点击Tomacat Localhost Log查看日志