其实Javaweb项目是可以配置web根路径的,今天进公司搭建项目,发现与平常遇到的项目结构不一样,没有webapp,配置如下:

1、找到file --> setting --> project structure ,如下图:

IDEA如何配置webapp根路径位置

2、找到资源文件夹路径,配置映射

IDEA如何配置webapp根路径位置

3、配置编译资源

IDEA如何配置webapp根路径位置

如图,在需要编译的文件夹前打勾

4、添加依赖包(非maven项目)

IDEA如何配置webapp根路径位置

 

 

 

 

相关文章:

  • 2021-11-30
  • 2021-07-22
  • 2021-09-22
  • 2021-06-27
  • 2022-12-23
  • 2021-07-17
  • 2021-08-06
猜你喜欢
  • 2021-11-18
  • 2022-12-23
  • 2021-11-25
  • 2021-06-14
  • 2021-05-03
  • 2021-04-10
  • 2022-12-23
相关资源
相似解决方案