Spring3.X @MVC - (二)So Easy的注解功能

深入理解SpringMVC配置与注解应用
本文详细介绍了SpringMVC的核心配置文件及重要注解使用,通过实例演示了如何激活注解扫描、创建SpringMVC控制器、使用@RequestMapping进行URL路由、自动装配属性、创建JSP视图以及映射不同类型的HTTP请求。文章覆盖了SpringMVC的基本原理与实践应用,适合开发者深入了解其工作流程与细节。

前言:

一、总共有10节,也就是10篇博客来讲述Spring的MVC,几乎涵盖了所有Spring MVC中的内容。

 

二、我创建的例子是一个球场预订系统,例子我已经测试调试通过,是一个Maven的project,包含一个Parent project:wsheng-spring-base和一个子Module:wsheng-spring-mvc.

 

三、在Eclipse中直接import maven的project即可,会同时引入上诉两个project的。

 

四、如果你没有耐心,可以不必往下学习,因为网上有很多例子,但是都是讲的Spring MVC很少的面,而且你可以快速的上手,但如果你想真正了解Spring MVC中的很多细节,就可以慢慢的去看博客(从第一节到第十节),如果有什么问题,欢迎信息告诉我。

 

五、学习的方法是你可以先将源码导入到eclipse中,然后根据博客上的内容,对照源码,慢慢消化,这是个漫长的过程,但是会帮助你了解很多Spring MVC的细节。

===================================================================================

 

 

在 Spring3.X @MVC - (一)重要的配置文件 http://josh-persistence.iteye.com/blog/1873138的基础上,接着讨论Spring MVC的引用。

 

6) 激活Spring MVC注解扫描

    a: <context:component-scan>启动Spring的组件扫描功能

    b:<context:component-sacn>扫描带有@Controller,@RequestMapping的Java类或者方法。

注:@RequestMapping分为类级别和方法级别两种。可以在court-servlet.xml中分别注册一个

DefaultAnnotationHandlerMapping和一个AnnotationMethodHanlderAdapter实例。

 

7)使用注解@Controller创建SpringMVC控制器,使用@RequestMapping进行URL路由。

      基于注解的类可以是任意的类,可以不用实现特设的接口或者扩展特殊的父类。使用@Controller注解这种类。@RequestMapping注解可以应用到类级别或者方法级别。第一种映射策略是将一个特殊的URL模式映射到一个控制器类,然后映射特定的HTTP方法到每个处理程序中的方法。

@Controller

@RequestMapping("/welcome")

public class WelcomeController {

    @RequestMapping(method = RequestMethod.GET)

    public String welcome(Model model) {

        Date today = new Date();

model.addAttribute("today",today);

        return "welcome";

    }

}

上面的代码直观的表现出需要显示在视图View层上的数据today被加到了Model层中。@RequestMapping(method = RequestMethod.GET)注解用于将welcome方法装饰城控制器默认的HTTP GET处理程序的方法。值得注意的是,如果没有声明默认的HTTP GET处理程序方法,会抛出SeveltException异常。因此Spring MVC控制器至少能起到一个URL路由和默认HTTP GET处理程序的方法。

 

8)@Autowired注解使得不需要使用XML文件注入属性。

<bean class="A">

      <property name="b" ref="b"/>

</bean>

 

9)创建JSP视图

Spring MVC支持许多种用于不同表现技术的视图,这些视图包括:JSPs, HTML, PDF, Excel(XLS),XML,JSON,Atom以及RSS feeds,JasperReports和其他第三方视图实现。

 

10)用@RequestMapping映射请求:

当DispatcherServlet接收到一个Web请求,它试图将请求发往用@Controller注解声明的不同控制器类。这个调度过程将去扫描用@RequestMapping注解的各个方法。

a: 将多个URL映射到同一个方法上:

@RequestMapping(value={"/member/remove","/member/delete"}, method=RequestMethod.GET)

public String removeMember(@RequestParam("memberName") String memberName){  }

 

b:映射类,@RequestMapping注解支持使用通配符(*)

@Controller

@RequestMapping("/member/*")

public class MemberController  {

 

@RequestMapping("display/{user}")

public String removeMember(@PathVariable("user") String user) {

...

}

 

@RequestMapping

public void memberList() {

1. 该方法使用了@RequestMapping注解,但是缺少URL值。因为类级别使用了/member/* URL通配符,这个方法可看成是

全能的方法执行。任何URL请求(例如/member/abcdefg或者/member/randomroute)都会触发该方法。

 

2. void的返回值,这使处理程序方法默认指向同名的视图,也就是memberList.

}

 

}

 

11) 映射8种HTTP类型

默认情况下,@RequestMapping注解假定所有请求都是HTTP GET类型,这在Web应用中是最常见的情况。如果需要指定POST类型,可以使用

@RequestMapping(method=RequestMethod.POST)或者

@RequestMapping(value="processUser" method= RequestMethod.POST)

附:HTTP请求类型一共有8种情况:HEAD, GET,POST,PUT,DELETE,TRACE,OPTIONS,CONNECT.

 

看了如上的介绍后,你可能会问,URL扩展名.HTML和.JSP在哪里?

          你可能注意到,@RequestMapping注解中指定的所有URL都没有文件扩展名如.html或者.jsp的踪影。这是与MVC设计一致的好习惯,但是没有得到广泛地采用。

         控制器不应该与任何类型的表现视图技术的扩展名(如HTML或者JSP)关联。这就是控制器返回逻辑视图,而且声明匹配的URL应该没有扩展名的原因。

        如今,应用常常要以不同的格式(如XML,JSON,PDF或者XLS(Excel))提供相同的内容。检查请求中提供的扩展名(如果有)以及确定使用的视图技术应该留给视图解析器完成。

D:\jdk\jdk8\bin\java.exe -XX:TieredStopAtLevel=1 -noverify -Dspring.output.ansi.enabled=always -Dcom.sun.management.jmxremote -Dspring.jmx.enabled=true -Dspring.liveBeansView.mbeanDomain -Dspring.application.admin.enabled=true "-Dmanagement.endpoints.jmx.exposure.include=*" "-javaagent:D:\idea\IntelliJ IDEA 2024.3.6\lib\idea_rt.jar=2698" -Dfile.encoding=UTF-8 -classpath D:\jdk\jdk8\jre\lib\charsets.jar;D:\jdk\jdk8\jre\lib\deploy.jar;D:\jdk\jdk8\jre\lib\ext\access-bridge-64.jar;D:\jdk\jdk8\jre\lib\ext\cldrdata.jar;D:\jdk\jdk8\jre\lib\ext\dnsns.jar;D:\jdk\jdk8\jre\lib\ext\jaccess.jar;D:\jdk\jdk8\jre\lib\ext\jfxrt.jar;D:\jdk\jdk8\jre\lib\ext\localedata.jar;D:\jdk\jdk8\jre\lib\ext\nashorn.jar;D:\jdk\jdk8\jre\lib\ext\sunec.jar;D:\jdk\jdk8\jre\lib\ext\sunjce_provider.jar;D:\jdk\jdk8\jre\lib\ext\sunmscapi.jar;D:\jdk\jdk8\jre\lib\ext\sunpkcs11.jar;D:\jdk\jdk8\jre\lib\ext\zipfs.jar;D:\jdk\jdk8\jre\lib\javaws.jar;D:\jdk\jdk8\jre\lib\jce.jar;D:\jdk\jdk8\jre\lib\jfr.jar;D:\jdk\jdk8\jre\lib\jfxswt.jar;D:\jdk\jdk8\jre\lib\jsse.jar;D:\jdk\jdk8\jre\lib\management-agent.jar;D:\jdk\jdk8\jre\lib\plugin.jar;D:\jdk\jdk8\jre\lib\resources.jar;D:\jdk\jdk8\jre\lib\rt.jar;D:\code\Mockexam-Server\background\eladmin-system\target\classes;D:\code\Mockexam-Server\background\eladmin-generator\target\classes;D:\apache-maven-3.9.11\repo\org\springframework\boot\spring-boot-starter-freemarker\2.2.10.RELEASE\spring-boot-starter-freemarker-2.2.10.RELEASE.jar;D:\apache-maven-3.9.11\repo\commons-configuration\commons-configuration\1.9\commons-configuration-1.9.jar;D:\apache-maven-3.9.11\repo\commons-lang\commons-lang\2.6\commons-lang-2.6.jar;D:\apache-maven-3.9.11\repo\commons-logging\commons-logging\1.1.1\commons-logging-1.1.1.jar;D:\code\Mockexam-Server\background\eladmin-tools\target\classes;D:\code\Mockexam-Server\background\eladmin-logging\target\classes;D:\code\Mockexam-Server\background\eladmin-common\target\classes;D:\apache-maven-3.9.11\repo\javax\mail\mail\1.4.7\mail-1.4.7.jar;D:\apache-maven-3.9.11\repo\javax\activation\activation\1.1\activation-1.1.jar;D:\apache-maven-3.9.11\repo\com\qiniu\qiniu-java-sdk\7.2.29\qiniu-java-sdk-7.2.29.jar;D:\apache-maven-3.9.11\repo\com\squareup\okhttp3\okhttp\3.14.9\okhttp-3.14.9.jar;D:\apache-maven-3.9.11\repo\com\squareup\okio\okio\1.17.2\okio-1.17.2.jar;D:\apache-maven-3.9.11\repo\com\google\code\gson\gson\2.8.6\gson-2.8.6.jar;D:\apache-maven-3.9.11\repo\com\alipay\sdk\alipay-sdk-java\4.9.153.ALL\alipay-sdk-java-4.9.153.ALL.jar;D:\apache-maven-3.9.11\repo\org\bouncycastle\bcprov-jdk15on\1.62\bcprov-jdk15on-1.62.jar;D:\apache-maven-3.9.11\repo\org\springframework\boot\spring-boot-starter-websocket\2.2.10.RELEASE\spring-boot-starter-websocket-2.2.10.RELEASE.jar;D:\apache-maven-3.9.11\repo\org\springframework\spring-messaging\5.2.9.RELEASE\spring-messaging-5.2.9.RELEASE.jar;D:\apache-maven-3.9.11\repo\org\springframework\spring-beans\5.2.9.RELEASE\spring-beans-5.2.9.RELEASE.jar;D:\apache-maven-3.9.11\repo\org\springframework\spring-websocket\5.2.9.RELEASE\spring-websocket-5.2.9.RELEASE.jar;D:\apache-maven-3.9.11\repo\io\jsonwebtoken\jjwt-api\0.11.1\jjwt-api-0.11.1.jar;D:\apache-maven-3.9.11\repo\io\jsonwebtoken\jjwt-impl\0.11.1\jjwt-impl-0.11.1.jar;D:\apache-maven-3.9.11\repo\io\jsonwebtoken\jjwt-jackson\0.11.1\jjwt-jackson-0.11.1.jar;D:\apache-maven-3.9.11\repo\org\quartz-scheduler\quartz\2.3.2\quartz-2.3.2.jar;D:\apache-maven-3.9.11\repo\com\mchange\mchange-commons-java\0.2.15\mchange-commons-java-0.2.15.jar;D:\apache-maven-3.9.11\repo\ch\ethz\ganymed\ganymed-ssh2\build210\ganymed-ssh2-build210.jar;D:\apache-maven-3.9.11\repo\com\jcraft\jsch\0.1.55\jsch-0.1.55.jar;D:\apache-maven-3.9.11\repo\com\github\oshi\oshi-core\5.3.6\oshi-core-5.3.6.jar;D:\apache-maven-3.9.11\repo\net\java\dev\jna\jna\5.6.0\jna-5.6.0.jar;D:\apache-maven-3.9.11\repo\net\java\dev\jna\jna-platform\5.6.0\jna-platform-5.6.0.jar;D:\apache-maven-3.9.11\repo\org\springframework\boot\spring-boot-starter-data-jpa\2.2.10.RELEASE\spring-boot-starter-data-jpa-2.2.10.RELEASE.jar;D:\apache-maven-3.9.11\repo\org\springframework\boot\spring-boot-starter-aop\2.2.10.RELEASE\spring-boot-starter-aop-2.2.10.RELEASE.jar;D:\apache-maven-3.9.11\repo\org\aspectj\aspectjweaver\1.9.6\aspectjweaver-1.9.6.jar;D:\apache-maven-3.9.11\repo\org\springframework\boot\spring-boot-starter-jdbc\2.2.10.RELEASE\spring-boot-starter-jdbc-2.2.10.RELEASE.jar;D:\apache-maven-3.9.11\repo\com\zaxxer\HikariCP\3.4.5\HikariCP-3.4.5.jar;D:\apache-maven-3.9.11\repo\org\springframework\spring-jdbc\5.2.9.RELEASE\spring-jdbc-5.2.9.RELEASE.jar;D:\apache-maven-3.9.11\repo\jakarta\persistence\jakarta.persistence-api\2.2.3\jakarta.persistence-api-2.2.3.jar;D:\apache-maven-3.9.11\repo\jakarta\transaction\jakarta.transaction-api\1.3.3\jakarta.transaction-api-1.3.3.jar;D:\apache-maven-3.9.11\repo\org\hibernate\hibernate-core\5.4.21.Final\hibernate-core-5.4.21.Final.jar;D:\apache-maven-3.9.11\repo\org\jboss\logging\jboss-logging\3.4.1.Final\jboss-logging-3.4.1.Final.jar;D:\apache-maven-3.9.11\repo\org\javassist\javassist\3.24.0-GA\javassist-3.24.0-GA.jar;D:\apache-maven-3.9.11\repo\net\bytebuddy\byte-buddy\1.10.14\byte-buddy-1.10.14.jar;D:\apache-maven-3.9.11\repo\antlr\antlr\2.7.7\antlr-2.7.7.jar;D:\apache-maven-3.9.11\repo\org\jboss\jandex\2.1.3.Final\jandex-2.1.3.Final.jar;D:\apache-maven-3.9.11\repo\org\dom4j\dom4j\2.1.3\dom4j-2.1.3.jar;D:\apache-maven-3.9.11\repo\org\hibernate\common\hibernate-commons-annotations\5.1.0.Final\hibernate-commons-annotations-5.1.0.Final.jar;D:\apache-maven-3.9.11\repo\org\glassfish\jaxb\jaxb-runtime\2.3.3\jaxb-runtime-2.3.3.jar;D:\apache-maven-3.9.11\repo\org\glassfish\jaxb\txw2\2.3.3\txw2-2.3.3.jar;D:\apache-maven-3.9.11\repo\com\sun\istack\istack-commons-runtime\3.0.11\istack-commons-runtime-3.0.11.jar;D:\apache-maven-3.9.11\repo\com\sun\activation\jakarta.activation\1.2.2\jakarta.activation-1.2.2.jar;D:\apache-maven-3.9.11\repo\org\springframework\data\spring-data-jpa\2.2.10.RELEASE\spring-data-jpa-2.2.10.RELEASE.jar;D:\apache-maven-3.9.11\repo\org\springframework\data\spring-data-commons\2.2.10.RELEASE\spring-data-commons-2.2.10.RELEASE.jar;D:\apache-maven-3.9.11\repo\org\springframework\spring-orm\5.2.9.RELEASE\spring-orm-5.2.9.RELEASE.jar;D:\apache-maven-3.9.11\repo\org\springframework\spring-tx\5.2.9.RELEASE\spring-tx-5.2.9.RELEASE.jar;D:\apache-maven-3.9.11\repo\org\springframework\spring-aspects\5.2.9.RELEASE\spring-aspects-5.2.9.RELEASE.jar;D:\apache-maven-3.9.11\repo\org\springframework\boot\spring-boot-starter-web\2.2.10.RELEASE\spring-boot-starter-web-2.2.10.RELEASE.jar;D:\apache-maven-3.9.11\repo\org\springframework\boot\spring-boot-starter\2.2.10.RELEASE\spring-boot-starter-2.2.10.RELEASE.jar;D:\apache-maven-3.9.11\repo\org\springframework\boot\spring-boot\2.2.10.RELEASE\spring-boot-2.2.10.RELEASE.jar;D:\apache-maven-3.9.11\repo\org\springframework\boot\spring-boot-starter-logging\2.2.10.RELEASE\spring-boot-starter-logging-2.2.10.RELEASE.jar;D:\apache-maven-3.9.11\repo\org\apache\logging\log4j\log4j-to-slf4j\2.12.1\log4j-to-slf4j-2.12.1.jar;D:\apache-maven-3.9.11\repo\org\apache\logging\log4j\log4j-api\2.12.1\log4j-api-2.12.1.jar;D:\apache-maven-3.9.11\repo\org\slf4j\jul-to-slf4j\1.7.30\jul-to-slf4j-1.7.30.jar;D:\apache-maven-3.9.11\repo\jakarta\annotation\jakarta.annotation-api\1.3.5\jakarta.annotation-api-1.3.5.jar;D:\apache-maven-3.9.11\repo\org\yaml\snakeyaml\1.25\snakeyaml-1.25.jar;D:\apache-maven-3.9.11\repo\org\springframework\boot\spring-boot-starter-json\2.2.10.RELEASE\spring-boot-starter-json-2.2.10.RELEASE.jar;D:\apache-maven-3.9.11\repo\com\fasterxml\jackson\datatype\jackson-datatype-jdk8\2.10.5\jackson-datatype-jdk8-2.10.5.jar;D:\apache-maven-3.9.11\repo\com\fasterxml\jackson\datatype\jackson-datatype-jsr310\2.10.5\jackson-datatype-jsr310-2.10.5.jar;D:\apache-maven-3.9.11\repo\com\fasterxml\jackson\module\jackson-module-parameter-names\2.10.5\jackson-module-parameter-names-2.10.5.jar;D:\apache-maven-3.9.11\repo\org\springframework\boot\spring-boot-starter-tomcat\2.2.10.RELEASE\spring-boot-starter-tomcat-2.2.10.RELEASE.jar;D:\apache-maven-3.9.11\repo\org\apache\tomcat\embed\tomcat-embed-core\9.0.38\tomcat-embed-core-9.0.38.jar;D:\apache-maven-3.9.11\repo\org\apache\tomcat\embed\tomcat-embed-el\9.0.38\tomcat-embed-el-9.0.38.jar;D:\apache-maven-3.9.11\repo\org\apache\tomcat\embed\tomcat-embed-websocket\9.0.38\tomcat-embed-websocket-9.0.38.jar;D:\apache-maven-3.9.11\repo\org\springframework\boot\spring-boot-starter-validation\2.2.10.RELEASE\spring-boot-starter-validation-2.2.10.RELEASE.jar;D:\apache-maven-3.9.11\repo\jakarta\validation\jakarta.validation-api\2.0.2\jakarta.validation-api-2.0.2.jar;D:\apache-maven-3.9.11\repo\org\springframework\spring-web\5.2.9.RELEASE\spring-web-5.2.9.RELEASE.jar;D:\apache-maven-3.9.11\repo\org\springframework\spring-webmvc\5.2.9.RELEASE\spring-webmvc-5.2.9.RELEASE.jar;D:\apache-maven-3.9.11\repo\org\springframework\spring-expression\5.2.9.RELEASE\spring-expression-5.2.9.RELEASE.jar;D:\apache-maven-3.9.11\repo\jakarta\xml\bind\jakarta.xml.bind-api\2.3.3\jakarta.xml.bind-api-2.3.3.jar;D:\apache-maven-3.9.11\repo\jakarta\activation\jakarta.activation-api\1.2.2\jakarta.activation-api-1.2.2.jar;D:\apache-maven-3.9.11\repo\org\springframework\spring-core\5.2.9.RELEASE\spring-core-5.2.9.RELEASE.jar;D:\apache-maven-3.9.11\repo\org\springframework\spring-jcl\5.2.9.RELEASE\spring-jcl-5.2.9.RELEASE.jar;D:\apache-maven-3.9.11\repo\cn\hutool\hutool-all\5.3.10\hutool-all-5.3.10.jar;D:\apache-maven-3.9.11\repo\org\springframework\boot\spring-boot-starter-security\2.2.10.RELEASE\spring-boot-starter-security-2.2.10.RELEASE.jar;D:\apache-maven-3.9.11\repo\org\springframework\spring-aop\5.2.9.RELEASE\spring-aop-5.2.9.RELEASE.jar;D:\apache-maven-3.9.11\repo\org\springframework\security\spring-security-config\5.2.6.RELEASE\spring-security-config-5.2.6.RELEASE.jar;D:\apache-maven-3.9.11\repo\org\springframework\security\spring-security-core\5.2.6.RELEASE\spring-security-core-5.2.6.RELEASE.jar;D:\apache-maven-3.9.11\repo\org\springframework\security\spring-security-web\5.2.6.RELEASE\spring-security-web-5.2.6.RELEASE.jar;D:\apache-maven-3.9.11\repo\org\springframework\boot\spring-boot-starter-cache\2.2.10.RELEASE\spring-boot-starter-cache-2.2.10.RELEASE.jar;D:\apache-maven-3.9.11\repo\org\springframework\spring-context-support\5.2.9.RELEASE\spring-context-support-5.2.9.RELEASE.jar;D:\apache-maven-3.9.11\repo\org\springframework\boot\spring-boot-starter-data-redis\2.2.10.RELEASE\spring-boot-starter-data-redis-2.2.10.RELEASE.jar;D:\apache-maven-3.9.11\repo\org\springframework\data\spring-data-redis\2.2.10.RELEASE\spring-data-redis-2.2.10.RELEASE.jar;D:\apache-maven-3.9.11\repo\org\springframework\data\spring-data-keyvalue\2.2.10.RELEASE\spring-data-keyvalue-2.2.10.RELEASE.jar;D:\apache-maven-3.9.11\repo\org\springframework\spring-oxm\5.2.9.RELEASE\spring-oxm-5.2.9.RELEASE.jar;D:\apache-maven-3.9.11\repo\io\lettuce\lettuce-core\5.2.2.RELEASE\lettuce-core-5.2.2.RELEASE.jar;D:\apache-maven-3.9.11\repo\io\netty\netty-common\4.1.52.Final\netty-common-4.1.52.Final.jar;D:\apache-maven-3.9.11\repo\io\netty\netty-handler\4.1.52.Final\netty-handler-4.1.52.Final.jar;D:\apache-maven-3.9.11\repo\io\netty\netty-resolver\4.1.52.Final\netty-resolver-4.1.52.Final.jar;D:\apache-maven-3.9.11\repo\io\netty\netty-buffer\4.1.52.Final\netty-buffer-4.1.52.Final.jar;D:\apache-maven-3.9.11\repo\io\netty\netty-codec\4.1.52.Final\netty-codec-4.1.52.Final.jar;D:\apache-maven-3.9.11\repo\io\netty\netty-transport\4.1.52.Final\netty-transport-4.1.52.Final.jar;D:\apache-maven-3.9.11\repo\io\projectreactor\reactor-core\3.3.10.RELEASE\reactor-core-3.3.10.RELEASE.jar;D:\apache-maven-3.9.11\repo\org\reactivestreams\reactive-streams\1.0.3\reactive-streams-1.0.3.jar;D:\apache-maven-3.9.11\repo\org\apache\commons\commons-pool2\2.5.0\commons-pool2-2.5.0.jar;D:\apache-maven-3.9.11\repo\org\apache\commons\commons-lang3\3.11\commons-lang3-3.11.jar;D:\apache-maven-3.9.11\repo\org\bgee\log4jdbc-log4j2\log4jdbc-log4j2-jdbc4.1\1.16\log4jdbc-log4j2-jdbc4.1-1.16.jar;D:\apache-maven-3.9.11\repo\io\springfox\springfox-swagger2\2.9.2\springfox-swagger2-2.9.2.jar;D:\apache-maven-3.9.11\repo\io\springfox\springfox-spi\2.9.2\springfox-spi-2.9.2.jar;D:\apache-maven-3.9.11\repo\io\springfox\springfox-core\2.9.2\springfox-core-2.9.2.jar;D:\apache-maven-3.9.11\repo\io\springfox\springfox-schema\2.9.2\springfox-schema-2.9.2.jar;D:\apache-maven-3.9.11\repo\io\springfox\springfox-swagger-common\2.9.2\springfox-swagger-common-2.9.2.jar;D:\apache-maven-3.9.11\repo\io\springfox\springfox-spring-web\2.9.2\springfox-spring-web-2.9.2.jar;D:\apache-maven-3.9.11\repo\com\google\guava\guava\20.0\guava-20.0.jar;D:\apache-maven-3.9.11\repo\com\fasterxml\classmate\1.5.1\classmate-1.5.1.jar;D:\apache-maven-3.9.11\repo\org\springframework\plugin\spring-plugin-core\1.2.0.RELEASE\spring-plugin-core-1.2.0.RELEASE.jar;D:\apache-maven-3.9.11\repo\org\springframework\plugin\spring-plugin-metadata\1.2.0.RELEASE\spring-plugin-metadata-1.2.0.RELEASE.jar;D:\apache-maven-3.9.11\repo\io\springfox\springfox-swagger-ui\2.9.2\springfox-swagger-ui-2.9.2.jar;D:\apache-maven-3.9.11\repo\io\swagger\swagger-annotations\1.5.21\swagger-annotations-1.5.21.jar;D:\apache-maven-3.9.11\repo\io\swagger\swagger-models\1.5.21\swagger-models-1.5.21.jar;D:\apache-maven-3.9.11\repo\com\fasterxml\jackson\core\jackson-annotations\2.10.5\jackson-annotations-2.10.5.jar;D:\apache-maven-3.9.11\repo\mysql\mysql-connector-java\8.0.21\mysql-connector-java-8.0.21.jar;D:\apache-maven-3.9.11\repo\com\alibaba\druid-spring-boot-starter\1.2.4\druid-spring-boot-starter-1.2.4.jar;D:\apache-maven-3.9.11\repo\com\alibaba\druid\1.2.4\druid-1.2.4.jar;D:\apache-maven-3.9.11\repo\org\springframework\boot\spring-boot-autoconfigure\2.2.10.RELEASE\spring-boot-autoconfigure-2.2.10.RELEASE.jar;D:\apache-maven-3.9.11\repo\org\lionsoul\ip2region\1.7.2\ip2region-1.7.2.jar;D:\apache-maven-3.9.11\repo\com\xuxueli\xxl-job-core\2.0.1\xxl-job-core-2.0.1.jar;D:\apache-maven-3.9.11\repo\com\xuxueli\xxl-rpc-core\1.2.1\xxl-rpc-core-1.2.1.jar;D:\apache-maven-3.9.11\repo\com\caucho\hessian\4.0.51\hessian-4.0.51.jar;D:\apache-maven-3.9.11\repo\org\eclipse\jetty\jetty-server\9.4.31.v20200723\jetty-server-9.4.31.v20200723.jar;D:\apache-maven-3.9.11\repo\javax\servlet\javax.servlet-api\4.0.1\javax.servlet-api-4.0.1.jar;D:\apache-maven-3.9.11\repo\org\eclipse\jetty\jetty-http\9.4.31.v20200723\jetty-http-9.4.31.v20200723.jar;D:\apache-maven-3.9.11\repo\org\eclipse\jetty\jetty-util\9.4.31.v20200723\jetty-util-9.4.31.v20200723.jar;D:\apache-maven-3.9.11\repo\org\eclipse\jetty\jetty-io\9.4.31.v20200723\jetty-io-9.4.31.v20200723.jar;D:\apache-maven-3.9.11\repo\org\eclipse\jetty\jetty-client\9.4.31.v20200723\jetty-client-9.4.31.v20200723.jar;D:\apache-maven-3.9.11\repo\org\codehaus\groovy\groovy\2.5.13\groovy-2.5.13.jar;D:\apache-maven-3.9.11\repo\org\apache\commons\commons-exec\1.3\commons-exec-1.3.jar;D:\apache-maven-3.9.11\repo\commons-fileupload\commons-fileupload\1.3.1\commons-fileupload-1.3.1.jar;D:\apache-maven-3.9.11\repo\commons-io\commons-io\2.2\commons-io-2.2.jar;D:\apache-maven-3.9.11\repo\org\apache\httpcomponents\httpclient\4.5.2\httpclient-4.5.2.jar;D:\apache-maven-3.9.11\repo\org\apache\httpcomponents\httpcore\4.4.13\httpcore-4.4.13.jar;D:\apache-maven-3.9.11\repo\commons-codec\commons-codec\1.13\commons-codec-1.13.jar;D:\apache-maven-3.9.11\repo\com\baomidou\mybatis-plus-boot-starter\3.4.0\mybatis-plus-boot-starter-3.4.0.jar;D:\apache-maven-3.9.11\repo\com\fasterxml\jackson\core\jackson-databind\2.11.2\jackson-databind-2.11.2.jar;D:\apache-maven-3.9.11\repo\com\fasterxml\jackson\core\jackson-core\2.10.5\jackson-core-2.10.5.jar;D:\apache-maven-3.9.11\repo\com\github\tobato\fastdfs-client\1.26.5\fastdfs-client-1.26.5.jar;D:\apache-maven-3.9.11\repo\org\slf4j\jcl-over-slf4j\1.7.30\jcl-over-slf4j-1.7.30.jar;D:\apache-maven-3.9.11\repo\ch\qos\logback\logback-classic\1.2.3\logback-classic-1.2.3.jar;D:\apache-maven-3.9.11\repo\ch\qos\logback\logback-core\1.2.3\logback-core-1.2.3.jar;D:\apache-maven-3.9.11\repo\commons-beanutils\commons-beanutils\1.9.1\commons-beanutils-1.9.1.jar;D:\apache-maven-3.9.11\repo\commons-collections\commons-collections\3.2.1\commons-collections-3.2.1.jar;D:\apache-maven-3.9.11\repo\org\hibernate\validator\hibernate-validator\6.0.20.Final\hibernate-validator-6.0.20.Final.jar;D:\apache-maven-3.9.11\repo\javax\validation\validation-api\2.0.1.Final\validation-api-2.0.1.Final.jar;D:\apache-maven-3.9.11\repo\org\springframework\spring-context\5.2.9.RELEASE\spring-context-5.2.9.RELEASE.jar;D:\apache-maven-3.9.11\repo\net\coobird\thumbnailator\0.4.8\thumbnailator-0.4.8.jar;D:\apache-maven-3.9.11\repo\com\baomidou\mybatis-plus\3.4.0\mybatis-plus-3.4.0.jar;D:\apache-maven-3.9.11\repo\com\baomidou\mybatis-plus-extension\3.4.0\mybatis-plus-extension-3.4.0.jar;D:\apache-maven-3.9.11\repo\com\baomidou\mybatis-plus-core\3.4.0\mybatis-plus-core-3.4.0.jar;D:\apache-maven-3.9.11\repo\com\baomidou\mybatis-plus-annotation\3.4.0\mybatis-plus-annotation-3.4.0.jar;D:\apache-maven-3.9.11\repo\com\github\jsqlparser\jsqlparser\3.2\jsqlparser-3.2.jar;D:\apache-maven-3.9.11\repo\org\mybatis\mybatis\3.5.5\mybatis-3.5.5.jar;D:\apache-maven-3.9.11\repo\org\mybatis\mybatis-spring\2.0.5\mybatis-spring-2.0.5.jar;D:\apache-maven-3.9.11\repo\com\baomidou\mybatis-plus-generator\3.4.0\mybatis-plus-generator-3.4.0.jar;D:\apache-maven-3.9.11\repo\org\freemarker\freemarker\2.3.31\freemarker-2.3.31.jar;D:\apache-maven-3.9.11\repo\com\ibeetl\beetl\3.3.2.RELEASE\beetl-3.3.2.RELEASE.jar;D:\apache-maven-3.9.11\repo\org\antlr\antlr4-runtime\4.7.2\antlr4-runtime-4.7.2.jar;D:\apache-maven-3.9.11\repo\org\apache\velocity\velocity-engine-core\2.3\velocity-engine-core-2.3.jar;D:\apache-maven-3.9.11\repo\org\slf4j\slf4j-api\1.7.30\slf4j-api-1.7.30.jar;D:\apache-maven-3.9.11\repo\org\projectlombok\lombok\1.18.12\lombok-1.18.12.jar;D:\apache-maven-3.9.11\repo\org\apache\poi\poi\3.17\poi-3.17.jar;D:\apache-maven-3.9.11\repo\org\apache\commons\commons-collections4\4.1\commons-collections4-4.1.jar;D:\apache-maven-3.9.11\repo\org\apache\poi\poi-ooxml\3.17\poi-ooxml-3.17.jar;D:\apache-maven-3.9.11\repo\org\apache\poi\poi-ooxml-schemas\3.17\poi-ooxml-schemas-3.17.jar;D:\apache-maven-3.9.11\repo\org\apache\xmlbeans\xmlbeans\2.6.0\xmlbeans-2.6.0.jar;D:\apache-maven-3.9.11\repo\stax\stax-api\1.0.1\stax-api-1.0.1.jar;D:\apache-maven-3.9.11\repo\com\github\virtuald\curvesapi\1.04\curvesapi-1.04.jar;D:\apache-maven-3.9.11\repo\xerces\xercesImpl\2.12.0\xercesImpl-2.12.0.jar;D:\apache-maven-3.9.11\repo\xml-apis\xml-apis\1.4.01\xml-apis-1.4.01.jar;D:\apache-maven-3.9.11\repo\com\alibaba\fastjson\1.2.70\fastjson-1.2.70.jar;D:\apache-maven-3.9.11\repo\org\mapstruct\mapstruct\1.3.1.Final\mapstruct-1.3.1.Final.jar;D:\apache-maven-3.9.11\repo\org\mapstruct\mapstruct-processor\1.3.1.Final\mapstruct-processor-1.3.1.Final.jar;D:\apache-maven-3.9.11\repo\javax\inject\javax.inject\1\javax.inject-1.jar;D:\apache-maven-3.9.11\repo\com\github\whvcse\easy-captcha\1.6.2\easy-captcha-1.6.2.jar;D:\apache-maven-3.9.11\repo\eu\bitwalker\UserAgentUtils\1.21\UserAgentUtils-1.21.jar me.zhengjie.AppRun
08-10
"C:\Program Files\Java\jdk-21\bin\java.exe" -agentlib:jdwp=transport=dt_socket,address=127.0.0.1:60272,suspend=y,server=n -javaagent:C:\Users\zhuyc\AppData\Local\JetBrains\IntelliJIdea2025.2\captureAgent\debugger-agent.jar=file:///C:/Users/zhuyc/AppData/Local/Temp/capture18418660482489779050.props -agentpath:C:\Users\zhuyc\AppData\Local\Temp\idea_libasyncProfiler_dll_temp_folder\libasyncProfiler.dll=version,jfr,event=wall,interval=10ms,cstack=no,file=C:\Users\zhuyc\IdeaSnapshots\EasyCodeMaterialStatisticsApplication_2025_08_19_131853.jfr,dbghelppath=C:\Users\zhuyc\AppData\Local\Temp\idea_dbghelp_dll_temp_folder\dbghelp.dll,log=C:\Users\zhuyc\AppData\Local\Temp\EasyCodeMaterialStatisticsApplication_2025_08_19_131853.jfr.log.txt,logLevel=DEBUG -XX:TieredStopAtLevel=1 -Dspring.output.ansi.enabled=always -Dcom.sun.management.jmxremote -Dspring.jmx.enabled=true -Dspring.liveBeansView.mbeanDomain -Dspring.application.admin.enabled=true "-Dmanagement.endpoints.jmx.exposure.include=*" -Dkotlinx.coroutines.debug.enable.creation.stack.trace=false -Ddebugger.agent.enable.coroutines=true -Dkotlinx.coroutines.debug.enable.flows.stack.trace=true -Dkotlinx.coroutines.debug.enable.mutable.state.flows.stack.trace=true -Dfile.encoding=UTF-8 -Dsun.stdout.encoding=UTF-8 -Dsun.stderr.encoding=UTF-8 -classpath "F:\easycode\backend\easy-code-backend\easy-code-material-statistics\target\classes;F:\easycode\backend\easy-code-backend\easy-code-common\target\classes;C:\Users\zhuyc\.m2\repository\org\springframework\boot\spring-boot-starter\3.5.4\spring-boot-starter-3.5.4.jar;C:\Users\zhuyc\.m2\repository\org\springframework\boot\spring-boot\3.5.4\spring-boot-3.5.4.jar;C:\Users\zhuyc\.m2\repository\org\springframework\spring-context\6.2.9\spring-context-6.2.9.jar;C:\Users\zhuyc\.m2\repository\org\springframework\boot\spring-boot-autoconfigure\3.5.4\spring-boot-autoconfigure-3.5.4.jar;C:\Users\zhuyc\.m2\repository\org\springframework\boot\spring-boot-starter-logging\3.5.4\spring-boot-starter-logging-3.5.4.jar;C:\Users\zhuyc\.m2\repository\ch\qos\logback\logback-classic\1.5.18\logback-classic-1.5.18.jar;C:\Users\zhuyc\.m2\repository\ch\qos\logback\logback-core\1.5.18\logback-core-1.5.18.jar;C:\Users\zhuyc\.m2\repository\org\slf4j\slf4j-api\2.0.17\slf4j-api-2.0.17.jar;C:\Users\zhuyc\.m2\repository\org\apache\logging\log4j\log4j-to-slf4j\2.24.3\log4j-to-slf4j-2.24.3.jar;C:\Users\zhuyc\.m2\repository\org\apache\logging\log4j\log4j-api\2.24.3\log4j-api-2.24.3.jar;C:\Users\zhuyc\.m2\repository\org\slf4j\jul-to-slf4j\2.0.17\jul-to-slf4j-2.0.17.jar;C:\Users\zhuyc\.m2\repository\jakarta\annotation\jakarta.annotation-api\2.1.1\jakarta.annotation-api-2.1.1.jar;C:\Users\zhuyc\.m2\repository\org\springframework\spring-core\6.2.9\spring-core-6.2.9.jar;C:\Users\zhuyc\.m2\repository\org\springframework\spring-jcl\6.2.9\spring-jcl-6.2.9.jar;C:\Users\zhuyc\.m2\repository\org\yaml\snakeyaml\2.4\snakeyaml-2.4.jar;C:\Users\zhuyc\.m2\repository\org\springframework\boot\spring-boot-starter-web\3.5.4\spring-boot-starter-web-3.5.4.jar;C:\Users\zhuyc\.m2\repository\org\springframework\boot\spring-boot-starter-json\3.5.4\spring-boot-starter-json-3.5.4.jar;C:\Users\zhuyc\.m2\repository\com\fasterxml\jackson\core\jackson-databind\2.19.2\jackson-databind-2.19.2.jar;C:\Users\zhuyc\.m2\repository\com\fasterxml\jackson\core\jackson-annotations\2.19.2\jackson-annotations-2.19.2.jar;C:\Users\zhuyc\.m2\repository\com\fasterxml\jackson\core\jackson-core\2.19.2\jackson-core-2.19.2.jar;C:\Users\zhuyc\.m2\repository\com\fasterxml\jackson\datatype\jackson-datatype-jdk8\2.19.2\jackson-datatype-jdk8-2.19.2.jar;C:\Users\zhuyc\.m2\repository\com\fasterxml\jackson\datatype\jackson-datatype-jsr310\2.19.2\jackson-datatype-jsr310-2.19.2.jar;C:\Users\zhuyc\.m2\repository\com\fasterxml\jackson\module\jackson-module-parameter-names\2.19.2\jackson-module-parameter-names-2.19.2.jar;C:\Users\zhuyc\.m2\repository\org\springframework\boot\spring-boot-starter-tomcat\3.5.4\spring-boot-starter-tomcat-3.5.4.jar;C:\Users\zhuyc\.m2\repository\org\apache\tomcat\embed\tomcat-embed-core\10.1.43\tomcat-embed-core-10.1.43.jar;C:\Users\zhuyc\.m2\repository\org\apache\tomcat\embed\tomcat-embed-el\10.1.43\tomcat-embed-el-10.1.43.jar;C:\Users\zhuyc\.m2\repository\org\apache\tomcat\embed\tomcat-embed-websocket\10.1.43\tomcat-embed-websocket-10.1.43.jar;C:\Users\zhuyc\.m2\repository\org\springframework\spring-web\6.2.9\spring-web-6.2.9.jar;C:\Users\zhuyc\.m2\repository\org\springframework\spring-beans\6.2.9\spring-beans-6.2.9.jar;C:\Users\zhuyc\.m2\repository\io\micrometer\micrometer-observation\1.14.9\micrometer-observation-1.14.9.jar;C:\Users\zhuyc\.m2\repository\io\micrometer\micrometer-commons\1.14.9\micrometer-commons-1.14.9.jar;C:\Users\zhuyc\.m2\repository\org\springframework\spring-webmvc\6.2.9\spring-webmvc-6.2.9.jar;C:\Users\zhuyc\.m2\repository\org\springframework\spring-aop\6.2.9\spring-aop-6.2.9.jar;C:\Users\zhuyc\.m2\repository\org\springframework\spring-expression\6.2.9\spring-expression-6.2.9.jar;C:\Users\zhuyc\.m2\repository\com\mybatis-flex\mybatis-flex-spring-boot3-starter\1.11.1\mybatis-flex-spring-boot3-starter-1.11.1.jar;C:\Users\zhuyc\.m2\repository\com\mybatis-flex\mybatis-flex-spring-boot-starter\1.11.1\mybatis-flex-spring-boot-starter-1.11.1.jar;C:\Users\zhuyc\.m2\repository\com\mybatis-flex\mybatis-flex-spring\1.11.1\mybatis-flex-spring-1.11.1.jar;C:\Users\zhuyc\.m2\repository\org\springframework\spring-context-support\5.3.27\spring-context-support-5.3.27.jar;C:\Users\zhuyc\.m2\repository\org\springframework\batch\spring-batch-core\4.3.10\spring-batch-core-4.3.10.jar;C:\Users\zhuyc\.m2\repository\io\micrometer\micrometer-core\1.9.17\micrometer-core-1.9.17.jar;C:\Users\zhuyc\.m2\repository\org\hdrhistogram\HdrHistogram\2.1.12\HdrHistogram-2.1.12.jar;C:\Users\zhuyc\.m2\repository\org\latencyutils\LatencyUtils\2.0.3\LatencyUtils-2.0.3.jar;C:\Users\zhuyc\.m2\repository\javax\batch\javax.batch-api\1.0\javax.batch-api-1.0.jar;C:\Users\zhuyc\.m2\repository\org\springframework\batch\spring-batch-infrastructure\4.3.10\spring-batch-infrastructure-4.3.10.jar;C:\Users\zhuyc\.m2\repository\org\springframework\retry\spring-retry\1.3.4\spring-retry-1.3.4.jar;C:\Users\zhuyc\.m2\repository\com\mybatis-flex\mybatis-flex-core\1.11.1\mybatis-flex-core-1.11.1.jar;C:\Users\zhuyc\.m2\repository\com\mybatis-flex\mybatis-flex-annotation\1.11.1\mybatis-flex-annotation-1.11.1.jar;C:\Users\zhuyc\.m2\repository\com\mybatis-flex\mybatis-flex-processor\1.11.1\mybatis-flex-processor-1.11.1.jar;C:\Users\zhuyc\.m2\repository\org\mybatis\mybatis-spring\3.0.4\mybatis-spring-3.0.4.jar;C:\Users\zhuyc\.m2\repository\cn\hutool\hutool-all\5.8.39\hutool-all-5.8.39.jar;C:\Users\zhuyc\.m2\repository\com\baomidou\mybatis-plus-spring-boot3-starter\3.5.12\mybatis-plus-spring-boot3-starter-3.5.12.jar;C:\Users\zhuyc\.m2\repository\com\baomidou\mybatis-plus\3.5.12\mybatis-plus-3.5.12.jar;C:\Users\zhuyc\.m2\repository\com\baomidou\mybatis-plus-core\3.5.12\mybatis-plus-core-3.5.12.jar;C:\Users\zhuyc\.m2\repository\com\baomidou\mybatis-plus-annotation\3.5.12\mybatis-plus-annotation-3.5.12.jar;C:\Users\zhuyc\.m2\repository\com\baomidou\mybatis-plus-spring\3.5.12\mybatis-plus-spring-3.5.12.jar;C:\Users\zhuyc\.m2\repository\com\baomidou\mybatis-plus-extension\3.5.12\mybatis-plus-extension-3.5.12.jar;C:\Users\zhuyc\.m2\repository\org\mybatis\mybatis\3.5.19\mybatis-3.5.19.jar;C:\Users\zhuyc\.m2\repository\com\baomidou\mybatis-plus-spring-boot-autoconfigure\3.5.12\mybatis-plus-spring-boot-autoconfigure-3.5.12.jar;C:\Users\zhuyc\.m2\repository\org\springframework\boot\spring-boot-starter-jdbc\3.4.1\spring-boot-starter-jdbc-3.4.1.jar;C:\Users\zhuyc\.m2\repository\com\zaxxer\HikariCP\5.1.0\HikariCP-5.1.0.jar;C:\Users\zhuyc\.m2\repository\org\springframework\spring-jdbc\6.2.1\spring-jdbc-6.2.1.jar;C:\Users\zhuyc\.m2\repository\org\springframework\spring-tx\6.2.1\spring-tx-6.2.1.jar;C:\Users\zhuyc\.m2\repository\com\mysql\mysql-connector-j\9.4.0\mysql-connector-j-9.4.0.jar;C:\Users\zhuyc\.m2\repository\com\google\protobuf\protobuf-java\4.31.1\protobuf-java-4.31.1.jar;F:\environment\IntelliJ IDEA 2024.2\lib\idea_rt.jar" com.easycode.materialstatistics.EasyCodeMaterialStatisticsApplication Connected to the target VM, address: &#39;127.0.0.1:60272&#39;, transport: &#39;socket&#39; . ____ _ __ _ _ /\\ / ___&#39;_ __ _ _(_)_ __ __ _ \ \ \ \ ( ( )\___ | &#39;_ | &#39;_| | &#39;_ \/ _` | \ \ \ \ \\/ ___)| |_)| | | | | || (_| | ) ) ) ) &#39; |____| .__|_| |_|_| |_\__, | / / / / =========|_|==============|___/=/_/_/_/ :: Spring Boot :: (v3.5.4) 13:18:54.191 [main] INFO c.e.m.EasyCodeMaterialStatisticsApplication - [logStarting,53] - Starting EasyCodeMaterialStatisticsApplication using Java 21.0.4 with PID 33044 (F:\easycode\backend\easy-code-backend\easy-code-material-statistics\target\classes started by zhuyc in F:\easycode\backend\easy-code-backend) 13:18:54.193 [main] INFO c.e.m.EasyCodeMaterialStatisticsApplication - [logStartupProfileInfo,652] - No active profile set, falling back to 1 default profile: "default" 13:18:54.448 [main] WARN o.s.b.w.s.c.AnnotationConfigServletWebServerApplicationContext - [refresh,635] - Exception encountered during context initialization - cancelling refresh attempt: org.springframework.beans.factory.BeanDefinitionStoreException: I/O failure while processing configuration class [org.springframework.boot.autoconfigure.batch.BatchAutoConfiguration$SpringBootBatchConfiguration] 13:18:54.470 [main] ERROR o.s.b.SpringApplication - [reportFailure,857] - Application run failed org.springframework.beans.factory.BeanDefinitionStoreException: I/O failure while processing configuration class [org.springframework.boot.autoconfigure.batch.BatchAutoConfiguration$SpringBootBatchConfiguration] at org.springframework.context.annotation.ConfigurationClassParser.processConfigurationClass(ConfigurationClassParser.java:286) at org.springframework.context.annotation.ConfigurationClassParser.processMemberClasses(ConfigurationClassParser.java:427) at org.springframework.context.annotation.ConfigurationClassParser.doProcessConfigurationClass(ConfigurationClassParser.java:308) at org.springframework.context.annotation.ConfigurationClassParser.processConfigurationClass(ConfigurationClassParser.java:281) at org.springframework.context.annotation.ConfigurationClassParser.processImports(ConfigurationClassParser.java:617) at org.springframework.context.annotation.ConfigurationClassParser$DeferredImportSelectorGroupingHandler.lambda$processGroupImports$1(ConfigurationClassParser.java:850) at java.base/java.lang.Iterable.forEach(Iterable.java:75) at org.springframework.context.annotation.ConfigurationClassParser$DeferredImportSelectorGroupingHandler.processGroupImports(ConfigurationClassParser.java:847) at org.springframework.context.annotation.ConfigurationClassParser$DeferredImportSelectorHandler.process(ConfigurationClassParser.java:817) at org.springframework.context.annotation.ConfigurationClassParser.parse(ConfigurationClassParser.java:198) at org.springframework.context.annotation.ConfigurationClassPostProcessor.processConfigBeanDefinitions(ConfigurationClassPostProcessor.java:418) at org.springframework.context.annotation.ConfigurationClassPostProcessor.postProcessBeanDefinitionRegistry(ConfigurationClassPostProcessor.java:290) at org.springframework.context.support.PostProcessorRegistrationDelegate.invokeBeanDefinitionRegistryPostProcessors(PostProcessorRegistrationDelegate.java:349) at org.springframework.context.support.PostProcessorRegistrationDelegate.invokeBeanFactoryPostProcessors(PostProcessorRegistrationDelegate.java:118) at org.springframework.context.support.AbstractApplicationContext.invokeBeanFactoryPostProcessors(AbstractApplicationContext.java:791) at org.springframework.context.support.AbstractApplicationContext.refresh(AbstractApplicationContext.java:609) at org.springframework.boot.web.servlet.context.ServletWebServerApplicationContext.refresh(ServletWebServerApplicationContext.java:146) at org.springframework.boot.SpringApplication.refresh(SpringApplication.java:752) at org.springframework.boot.SpringApplication.refreshContext(SpringApplication.java:439) at org.springframework.boot.SpringApplication.run(SpringApplication.java:318) at org.springframework.boot.SpringApplication.run(SpringApplication.java:1361) at org.springframework.boot.SpringApplication.run(SpringApplication.java:1350) at com.easycode.materialstatistics.EasyCodeMaterialStatisticsApplication.main(EasyCodeMaterialStatisticsApplication.java:10) Caused by: java.io.FileNotFoundException: class path resource [org/springframework/batch/core/configuration/support/DefaultBatchConfiguration.class] cannot be opened because it does not exist at org.springframework.core.io.ClassPathResource.getInputStream(ClassPathResource.java:215) at org.springframework.core.type.classreading.SimpleMetadataReader.getClassReader(SimpleMetadataReader.java:54) at org.springframework.core.type.classreading.SimpleMetadataReader.<init>(SimpleMetadataReader.java:48) at org.springframework.core.type.classreading.SimpleMetadataReaderFactory.getMetadataReader(SimpleMetadataReaderFactory.java:103) at org.springframework.boot.type.classreading.ConcurrentReferenceCachingMetadataReaderFactory.createMetadataReader(ConcurrentReferenceCachingMetadataReaderFactory.java:98) at org.springframework.boot.type.classreading.ConcurrentReferenceCachingMetadataReaderFactory.getMetadataReader(ConcurrentReferenceCachingMetadataReaderFactory.java:85) at org.springframework.core.type.classreading.SimpleMetadataReaderFactory.getMetadataReader(SimpleMetadataReaderFactory.java:81) at org.springframework.boot.type.classreading.ConcurrentReferenceCachingMetadataReaderFactory.getMetadataReader(ConcurrentReferenceCachingMetadataReaderFactory.java:75) at org.springframework.context.annotation.ConfigurationClassParser.asSourceClass(ConfigurationClassParser.java:711) at org.springframework.context.annotation.ConfigurationClassParser$SourceClass.getSuperClass(ConfigurationClassParser.java:1047) at org.springframework.context.annotation.ConfigurationClassParser.doProcessConfigurationClass(ConfigurationClassParser.java:395) at org.springframework.context.annotation.ConfigurationClassParser.processConfigurationClass(ConfigurationClassParser.java:281) ... 22 common frames omitted Disconnected from the target VM, address: &#39;127.0.0.1:60272&#39;, transport: &#39;socket&#39; Process finished with exit code 1
08-20
评论
成就一亿技术人!
拼手气红包6.0元
还能输入1000个字符
 
红包 添加红包
表情包 插入表情
 条评论被折叠 查看
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值