Maven托管项目无法运行main方法

I import spring-jdbc dependency in pom.xml,but when I run my test,it always reminder lack package.(and I can run this method in tomcat running). enter image description here

依赖在这里:

<!-- https://mvnrepository.com/artifact/org.springframework/spring-core -->
<dependency>
  <groupId>org.springframework</groupId>
  <artifactId>spring-core</artifactId>
  <version>5.0.3.RELEASE</version>
</dependency>

<!-- https://mvnrepository.com/artifact/org.springframework/spring-jdbc -->
<dependency>
  <groupId>org.springframework</groupId>
  <artifactId>spring-jdbc</artifactId>
  <version>5.0.3.RELEASE</version>
</dependency>