简体   繁体   English

无法通过 Intellij Idea 的 Springboot 项目上的模板创建 jsp 文件

[英]Not able to create jsp file by template on Intellij Idea's Springboot Project

So I created a Springboot project using IntelliJ's built-in Spring Initializr.所以我使用 IntelliJ 的内置 Spring Initializr 创建了一个 Springboot 项目。

Everything works fine except I don't see .jsp file by default while using new file .一切正常,除了我在使用新文件时默认看不到.jsp文件。 For now, I have to create a .html file and name it with the .jsp suffix.现在,我必须创建一个.html文件并使用.jsp后缀命名。

Is there's any way to have a default option for creating .jsp file?有什么方法可以使用默认选项来创建.jsp文件?

Thank you for your time!感谢您的时间!

在此处输入图像描述

My Intellij info:我的 Intellij 信息:

IntelliJ IDEA 2020.1.1 (Ultimate Edition)
Build #IU-201.7223.91, built on April 29, 2020
Runtime version: 11.0.6+8-b765.40 x86_64
VM: OpenJDK 64-Bit Server VM by JetBrains s.r.o
macOS 10.15.4
GC: ParNew, ConcurrentMarkSweep
Memory: 990M
Cores: 4

IDE will show JSP files when you invoke the New menu for the directories that are under Web Resource roots.当您为 Web 资源根目录下的目录调用“新建”菜单时,IDE 将显示 JSP 文件。 You may want to configure the Web facet |您可能想要配置 Web facet | Web Resource Directories . Web 资源目录

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM