错误: 在类 test.JdbcTest01 中找不到 main 方法, 请将 main 方法定义为: public static void main(String[] args)
原因是新建class的时候还没有写main入口,再加上写完之后没有保存,所以会认为没有main入口。
解决方法:Ctrl+S,保存即可。
错误: 在类 test.JdbcTest01 中找不到 main 方法, 请将 main 方法定义为: public static void main(String[] args)(已解决)

相关文章:

  • 2021-06-15
  • 2021-12-05
  • 2022-12-23
猜你喜欢
  • 2022-12-23
  • 2021-10-19
  • 2021-09-08
  • 2021-08-13
  • 2022-12-23
  • 2021-10-10
相关资源
相似解决方案