使用IDEA时出现:source 1.5 中不支持 switch 中存在字符串

java: -source 1.5 中不支持 switch 中存在字符串(请使用 -source 7 或更高版本以允许 switch 中存在字符串)

解决方法:

posted @ 2022-06-15 18:45  贾博文  阅读(416)  评论(0)    收藏  举报