本人的主方法不是写在这里吗?
![找不到主方法请将主方法定义为: public static void main(String[] args) 找不到主方法请将主方法定义为: public static void main(String[] args)](https://www.codebye.com/wp-content/uploads/2016/07/1865708457543923606.jpg)
![找不到主方法请将主方法定义为: public static void main(String[] args) 找不到主方法请将主方法定义为: public static void main(String[] args)](https://www.codebye.com/wp-content/uploads/2016/07/1865708457543923606.jpg)
解决方案
5
调用的时候加上类名
5
调用方法的时候签名加上类名
20
你的main方法写在了com.hmyy.entity.personal.personalDAO中
你运行的是com.hmyy.dao.personalDAO,而该类中没有main方法
你运行的是com.hmyy.dao.personalDAO,而该类中没有main方法
10
静态方法可以直接调用,不需要类名加点,找不到main方法是原因是你当前的类是在哪个报下面创建的。