【IDEA】Unable to parse template “Class“ , ‘XXX.java‘ mapped not java file type `XXX`

一、错误信息

Unable to parse template "Class" Error message: Selected class file name 'PersonTest.java' mapped to not java file type 'Auto-detect file type by content'
在这里插入图片描述
翻译一下:
无法分析模板“Class”
错误消息:选择的类文件名为“PersonTest”,映射到非java文件类型 “Auto-detect file type by content” 类型。

二、解决


找一下文件类型,找到 “Auto-detect file type by content” ,看到因为某一些误操作导致创建了一个文件模板:点击选中这个失误模板,再点击 - 删除即可。
在这里插入图片描述

 

 

出处:https://blog.csdn.net/qq_43718048/article/details/126585457

posted on   jack_Meng  阅读(344)  评论(0编辑  收藏  举报

相关博文:
阅读排行:
· DeepSeek “源神”启动!「GitHub 热点速览」
· 微软正式发布.NET 10 Preview 1:开启下一代开发框架新篇章
· C# 集成 DeepSeek 模型实现 AI 私有化(本地部署与 API 调用教程)
· DeepSeek R1 简明指南:架构、训练、本地部署及硬件要求
· NetPad:一个.NET开源、跨平台的C#编辑器
历史上的今天:
2022-05-19 Jenkins 中使用VSTest.console 执行单元测试,使用Allure 输出测试报告
2021-05-19 批处理for语句从入门到精通[20101225更新]
2021-05-19 Java 反编译工具对比分析
2021-05-19 Vue源码解析-源码目录及源码调试运行
2021-05-19 Vue.js源码解析-从scripts脚本看vue构建
2021-05-19 Linux ps命令详解
2021-05-19 Linux中10个实用命令,千万不要错过

导航

< 2025年2月 >
26 27 28 29 30 31 1
2 3 4 5 6 7 8
9 10 11 12 13 14 15
16 17 18 19 20 21 22
23 24 25 26 27 28 1
2 3 4 5 6 7 8
点击右上角即可分享
微信分享提示

喜欢请打赏

扫描二维码打赏

支付宝打赏

主题色彩