因此我使用 IntelliJ 内置的 Spring Initializr 创建了一个 Springboot 项目。
一切正常,除了在使用新文件时默认看不到.jsp
文件。现在,我必须创建一个 .html
文件并使用 .jsp
后缀命名。
有没有办法拥有创建 .jsp
文件的默认选项?
感谢您的宝贵时间!
我的 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
最佳答案
当您调用 Web 资源根目录下的目录的“新建”菜单时,IDE 将显示 JSP 文件。您可能想要配置 Web 方面 | Web Resource Directories .
关于java - 无法在Intellij Idea的Springboot项目上通过模板创建jsp文件,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/61757663/