idea修改文件名后出现main method should be static错误

1.确保你有main方法

2.别忘了main方法里还有参数: String[] args

原文地址:https://www.cnblogs.com/yrqiang/p/5347982.html