Spring MVC Junit测试实例 附:读取WEB-INF下配置文件的方法

本文介绍如何通过 JUnit 对 Spring MVC 中的 DAO 和 Controller 进行单元测试。包括配置文件读取、Mockito 模拟对象创建及测试代码编写。
Spring+Unit测试实例:
之前写过一个连接数据库的spring mvc annotation的一个实例(点击这里查看)。
当我们启动Web项目时要先启动Tomcat,而在Tomcat的启动过程中会读取spring项目的的各个配置文件,实例化各个注入的类,所以我们的程序中直接使用注解就可以操作各个类。

但是如果按普通的项目测试,就缺少了读取配置文件的过程,所以当你调用一个类方法时会出现空指针错误,因为类没有实例化。

对Spring MVC Dao的JUnit的测试。

下面是对上面提到的实例中的UserDao.class的测试,内容如下:

package org.spring.wayne.dao;

import org.junit.Test;
import org.junit.runner.RunWith;
import org.spring.wayne.web.form.User;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.test.context.ContextConfiguration;
import org.springframework.test.context.junit4.SpringJUnit4ClassRunner;

@RunWith(SpringJUnit4ClassRunner.class)
@ContextConfiguration(locations = { "file:WebContent/WEB-INF/springMVCForm-servlet.xml" })
public class UserDaoTest {

	@Autowired
	private UserDao userDao;

	@Test
	public void test() {
		User user = new User();
		user.setUserName("u");
		user.setPassword("p");
		userDao.addUser(user);
	}

}
右键->Run as->JUnit Test运行,无误。查询数据库显示已经插入数据库。

对Spring MVC Controller的JUnit的测试。

下面是对上面提到的实例中的RegController.class的测试,内容如下:

package org.spring.wayne.web.controller;

import static org.junit.Assert.assertEquals;

import org.junit.After;
import org.junit.Before;
import org.junit.Test;
import org.mockito.Mock;
import org.mockito.Mockito;
import org.mockito.MockitoAnnotations;
import org.spring.wayne.web.form.User;
import org.springframework.mock.web.MockHttpServletRequest;
import org.springframework.mock.web.MockHttpServletResponse;
import org.springframework.ui.ExtendedModelMap;
import org.springframework.ui.Model;
import org.springframework.validation.BindingResult;

public class RegControllerTest {

	@Mock
	private BindingResult mockBindingResult;
	
	@Before
	public void setUp() {
		MockitoAnnotations.initMocks(this);
		Mockito.when(mockBindingResult.hasErrors()).thenReturn(true);
	}

	@Test
	public void test() throws Exception {
		MockHttpServletRequest request = new MockHttpServletRequest();
		MockHttpServletResponse response = new MockHttpServletResponse();
		RegController regController = new RegController();
		Model model = new ExtendedModelMap();
		User user = new User();
		user.setUserName("uuuuuuu");
		user.setPassword("ppppppp");
		String result = regController.handler(user, mockBindingResult, model, request, response);
		System.out.println(result);
		assertEquals("register", result);
	}

	@After
	public void destroy() {

	}
}
右键->Run as->JUnit Test运行,无误





读取WEB-INF下配置文件的方法:

配置文件放在class目录下:

ApplicationContext applicationContext = new ClassPathXmlApplicationContext("springMVCForm-servlet.xml");

WEB-INF下:

ApplicationContext applicationContext = new FileSystemXmlApplicationContext("WebContent/WEB-INF/springMVCForm-servlet.xml");

多个文件可用*表示:

ApplicationContext applicationContext = new FileSystemXmlApplicationContext("WebContent/WEB-INF/springMVCForm-*.xml");
注解方式:

配置文件放在class目录下:

@ContextConfiguration(locations={"classpath:springMVCForm-servlet.xml"})

WEB-INF下:

@ContextConfiguration(locations={"file:WebContent/WEB-INF/springMVCForm-servlet.xml"})

使用注解时,Junit报错:

java.lang.NoSuchFieldError: NULL
	at org.junit.runners.ParentRunner.<init>(ParentRunner.java:48)
	at org.junit.runners.BlockJUnit4ClassRunner.<init>(BlockJUnit4ClassRunner.java:58)
	at org.springframework.test.context.junit4.SpringJUnit4ClassRunner.<init>(SpringJUnit4ClassRunner.java:104)
	at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
	at sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:39)
	at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)
	at java.lang.reflect.Constructor.newInstance(Constructor.java:513)
	at org.junit.internal.requests.ClassRequest.buildRunner(ClassRequest.java:33)
	at org.junit.internal.requests.ClassRequest.getRunner(ClassRequest.java:28)
	at org.eclipse.jdt.internal.junit4.runner.JUnit4TestReference.<init>(JUnit4TestReference.java:33)
	at org.eclipse.jdt.internal.junit4.runner.JUnit4TestClassReference.<init>(JUnit4TestClassReference.java:25)
	at org.eclipse.jdt.internal.junit4.runner.JUnit4TestLoader.createTest(JUnit4TestLoader.java:48)
	at org.eclipse.jdt.internal.junit4.runner.JUnit4TestLoader.loadTests(JUnit4TestLoader.java:38)
	at org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.runTests(RemoteTestRunner.java:452)
	at org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.runTests(RemoteTestRunner.java:683)
	at org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.run(RemoteTestRunner.java:390)
	at org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.main(RemoteTestRunner.java:197)
经检查是jar包冲突,我在建项目的时候,myeclipse有自动加入junit4,而后面我又自己加入Junit4.8.1。
如果报以下错误,则是junit包版本太低,需要4.5或以上的版本:
Caused by: java.lang.ClassNotFoundException: org.junit.runners.BlockJUnit4ClassRunner  
    at java.net.URLClassLoader$1.run(URLClassLoader.java:200)  
    at java.security.AccessController.doPrivileged(Native Method)  
    at java.net.URLClassLoader.findClass(URLClassLoader.java:188)  
    at java.lang.ClassLoader.loadClass(ClassLoader.java:307)  
    at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:301)  
    at java.lang.ClassLoader.loadClass(ClassLoader.java:252)  
    at java.lang.ClassLoader.loadClassInternal(ClassLoader.java:320)

#


排查结果如下: 1.使用mvn dependency:tree返回如下信息: [INFO] --- maven-dependency-plugin:3.1.2:tree (default-cli) @ zysygh --- [INFO] com.ghzy:zysygh:jar:0.1.196 [INFO] +- org.springframework.boot:spring-boot-starter-data-redis:jar:2.2.13.RELEASE:compile [INFO] | +- org.springframework.boot:spring-boot-starter:jar:2.2.13.RELEASE:compile [INFO] | | +- org.springframework.boot:spring-boot:jar:2.2.13.RELEASE:compile [INFO] | | +- org.springframework.boot:spring-boot-autoconfigure:jar:2.2.13.RELEASE:compile [INFO] | | +- jakarta.annotation:jakarta.annotation-api:jar:1.3.5:compile [INFO] | | \- org.yaml:snakeyaml:jar:1.25:runtime [INFO] | +- org.springframework.data:spring-data-redis:jar:2.2.12.RELEASE:compile [INFO] | | +- org.springframework.data:spring-data-keyvalue:jar:2.2.12.RELEASE:compile [INFO] | | | \- org.springframework.data:spring-data-commons:jar:2.2.12.RELEASE:compile [INFO] | | +- org.springframework:spring-tx:jar:5.2.12.RELEASE:compile [INFO] | | +- org.springframework:spring-oxm:jar:5.2.12.RELEASE:compile [INFO] | | \- org.springframework:spring-aop:jar:5.2.12.RELEASE:compile [INFO] | \- io.lettuce:lettuce-core:jar:5.2.2.RELEASE:compile [INFO] | +- io.netty:netty-common:jar:4.1.58.Final:compile [INFO] | +- io.netty:netty-handler:jar:4.1.58.Final:compile [INFO] | | +- io.netty:netty-resolver:jar:4.1.58.Final:compile [INFO] | | +- io.netty:netty-buffer:jar:4.1.58.Final:compile [INFO] | | \- io.netty:netty-codec:jar:4.1.58.Final:compile [INFO] | +- io.netty:netty-transport:jar:4.1.58.Final:compile [INFO] | \- io.projectreactor:reactor-core:jar:3.3.13.RELEASE:compile [INFO] | \- org.reactivestreams:reactive-streams:jar:1.0.3:compile [INFO] +- org.springframework.boot:spring-boot-starter-mail:jar:2.2.13.RELEASE:compile [INFO] | +- org.springframework:spring-context-support:jar:5.2.12.RELEASE:compile [INFO] | | +- org.springframework:spring-beans:jar:5.2.12.RELEASE:compile [INFO] | | \- org.springframework:spring-context:jar:5.2.12.RELEASE:compile [INFO] | \- com.sun.mail:jakarta.mail:jar:1.6.5:compile [INFO] | \- com.sun.activation:jakarta.activation:jar:1.2.2:compile [INFO] +- org.springframework.boot:spring-boot-starter-thymeleaf:jar:2.2.13.RELEASE:compile [INFO] | +- org.thymeleaf:thymeleaf-spring5:jar:3.0.12.RELEASE:compile [INFO] | | \- org.thymeleaf:thymeleaf:jar:3.0.12.RELEASE:compile [INFO] | | +- org.attoparser:attoparser:jar:2.0.5.RELEASE:compile [INFO] | | \- org.unbescape:unbescape:jar:1.1.6.RELEASE:compile [INFO] | \- org.thymeleaf.extras:thymeleaf-extras-java8time:jar:3.0.4.RELEASE:compile [INFO] +- org.springframework.boot:spring-boot-starter-web:jar:2.2.13.RELEASE:compile [INFO] | +- org.springframework.boot:spring-boot-starter-json:jar:2.2.13.RELEASE:compile [INFO] | | +- com.fasterxml.jackson.datatype:jackson-datatype-jdk8:jar:2.10.5:compile [INFO] | | +- com.fasterxml.jackson.datatype:jackson-datatype-jsr310:jar:2.10.5:compile [INFO] | | \- com.fasterxml.jackson.module:jackson-module-parameter-names:jar:2.10.5:compile [INFO] | +- org.springframework.boot:spring-boot-starter-tomcat:jar:2.2.13.RELEASE:compile [INFO] | | +- org.apache.tomcat.embed:tomcat-embed-core:jar:9.0.41:compile [INFO] | | +- org.apache.tomcat.embed:tomcat-embed-el:jar:9.0.41:compile [INFO] | | \- org.apache.tomcat.embed:tomcat-embed-websocket:jar:9.0.41:compile [INFO] | +- org.springframework.boot:spring-boot-starter-validation:jar:2.2.13.RELEASE:compile [INFO] | | +- jakarta.validation:jakarta.validation-api:jar:2.0.2:compile [INFO] | | \- org.hibernate.validator:hibernate-validator:jar:6.0.22.Final:compile [INFO] | | +- org.jboss.logging:jboss-logging:jar:3.4.1.Final:compile [INFO] | | \- com.fasterxml:classmate:jar:1.5.1:compile [INFO] | +- org.springframework:spring-web:jar:5.2.12.RELEASE:compile [INFO] | \- org.springframework:spring-webmvc:jar:5.2.12.RELEASE:compile [INFO] | \- org.springframework:spring-expression:jar:5.2.12.RELEASE:compile [INFO] +- org.mybatis.spring.boot:mybatis-spring-boot-starter:jar:2.3.2:compile [INFO] | +- org.springframework.boot:spring-boot-starter-jdbc:jar:2.2.13.RELEASE:compile [INFO] | | +- com.zaxxer:HikariCP:jar:3.4.5:compile [INFO] | | \- org.springframework:spring-jdbc:jar:5.2.12.RELEASE:compile [INFO] | +- org.mybatis.spring.boot:mybatis-spring-boot-autoconfigure:jar:2.3.2:compile [INFO] | \- org.mybatis:mybatis-spring:jar:2.1.2:compile [INFO] +- org.springframework.boot:spring-boot-starter-logging:jar:2.2.13.RELEASE:compile [INFO] | +- ch.qos.logback:logback-classic:jar:1.2.3:compile [INFO] | | \- ch.qos.logback:logback-core:jar:1.2.3:compile [INFO] | \- org.slf4j:jul-to-slf4j:jar:1.7.30:compile [INFO] +- mysql:mysql-connector-java:jar:8.0.26:runtime [INFO] +- org.projectlombok:lombok:jar:1.18.16:compile (optional) [INFO] +- org.springframework.boot:spring-boot-starter-test:jar:2.2.13.RELEASE:test [INFO] | +- org.springframework.boot:spring-boot-test:jar:2.2.13.RELEASE:test [INFO] | +- org.springframework.boot:spring-boot-test-autoconfigure:jar:2.2.13.RELEASE:test [INFO] | +- com.jayway.jsonpath:json-path:jar:2.4.0:test [INFO] | | \- net.minidev:json-smart:jar:2.3:test [INFO] | | \- net.minidev:accessors-smart:jar:1.2:test [INFO] | | \- org.ow2.asm:asm:jar:5.0.4:test [INFO] | +- jakarta.xml.bind:jakarta.xml.bind-api:jar:2.3.3:test [INFO] | | \- jakarta.activation:jakarta.activation-api:jar:1.2.2:test [INFO] | +- org.junit.jupiter:junit-jupiter:jar:5.5.2:test [INFO] | | +- org.junit.jupiter:junit-jupiter-api:jar:5.5.2:test [INFO] | | | +- org.opentest4j:opentest4j:jar:1.2.0:test [INFO] | | | \- org.junit.platform:junit-platform-commons:jar:1.5.2:test [INFO] | | +- org.junit.jupiter:junit-jupiter-params:jar:5.5.2:test [INFO] | | \- org.junit.jupiter:junit-jupiter-engine:jar:5.5.2:test [INFO] | +- org.junit.vintage:junit-vintage-engine:jar:5.5.2:test [INFO] | | +- org.apiguardian:apiguardian-api:jar:1.1.0:test [INFO] | | +- org.junit.platform:junit-platform-engine:jar:1.5.2:test [INFO] | | \- junit:junit:jar:4.12:test [INFO] | +- org.mockito:mockito-junit-jupiter:jar:3.1.0:test [INFO] | +- org.assertj:assertj-core:jar:3.13.2:test [INFO] | +- org.hamcrest:hamcrest:jar:2.1:test [INFO] | +- org.mockito:mockito-core:jar:3.1.0:test [INFO] | | +- net.bytebuddy:byte-buddy:jar:1.10.19:test [INFO] | | +- net.bytebuddy:byte-buddy-agent:jar:1.10.19:test [INFO] | | \- org.objenesis:objenesis:jar:2.6:test [INFO] | +- org.skyscreamer:jsonassert:jar:1.5.0:test [INFO] | | \- com.vaadin.external.google:android-json:jar:0.0.20131108.vaadin1:test [INFO] | +- org.springframework:spring-core:jar:5.2.12.RELEASE:compile [INFO] | | \- org.springframework:spring-jcl:jar:5.2.12.RELEASE:compile [INFO] | +- org.springframework:spring-test:jar:5.2.12.RELEASE:test [INFO] | \- org.xmlunit:xmlunit-core:jar:2.6.4:test [INFO] +- com.aliyun:aliyun-java-sdk-core:jar:4.5.3:compile [INFO] | +- com.google.code.gson:gson:jar:2.8.6:compile [INFO] | +- org.apache.httpcomponents:httpclient:jar:4.5.13:compile [INFO] | | \- commons-codec:commons-codec:jar:1.13:compile [INFO] | +- org.apache.httpcomponents:httpcore:jar:4.4.14:compile [INFO] | +- commons-logging:commons-logging:jar:1.2:compile [INFO] | +- javax.xml.bind:jaxb-api:jar:2.3.1:compile [INFO] | | \- javax.activation:javax.activation-api:jar:1.2.0:compile [INFO] | +- org.jacoco:org.jacoco.agent:jar:runtime:0.8.5:compile [INFO] | +- org.ini4j:ini4j:jar:0.5.4:compile [INFO] | +- org.slf4j:slf4j-api:jar:1.7.30:compile [INFO] | +- io.opentracing:opentracing-api:jar:0.33.0:compile [INFO] | \- io.opentracing:opentracing-util:jar:0.33.0:compile [INFO] | \- io.opentracing:opentracing-noop:jar:0.33.0:compile [INFO] +- com.aliyun:dysmsapi20170525:jar:4.1.0:compile [INFO] | +- com.aliyun:tea-util:jar:0.2.23:compile [INFO] | +- com.aliyun:endpoint-util:jar:0.0.7:compile [INFO] | +- com.aliyun:tea:jar:1.3.1:compile [INFO] | | \- com.squareup.okhttp3:okhttp:jar:3.14.9:compile [INFO] | | \- com.squareup.okio:okio:jar:1.17.2:compile [INFO] | +- com.aliyun:tea-openapi:jar:0.3.8:compile [INFO] | | +- com.aliyun:credentials-java:jar:1.0.1:compile [INFO] | | | \- com.aliyun:credentials-api:jar:1.0.0:compile [INFO] | | +- com.aliyun:alibabacloud-gateway-spi:jar:0.0.2:compile [INFO] | | \- com.aliyun:tea-xml:jar:0.1.6:compile [INFO] | | \- org.dom4j:dom4j:jar:2.0.3:compile [INFO] | \- com.aliyun:openapiutil:jar:0.2.2:compile [INFO] | \- org.bouncycastle:bcprov-jdk18on:jar:1.78.1:compile [INFO] +- com.alibaba:fastjson:jar:1.2.75:compile [INFO] +- org.mybatis:mybatis:jar:3.5.9:compile [INFO] +- org.jetbrains:annotations:jar:13.0:compile [INFO] +- org.springframework.boot:spring-boot-configuration-processor:jar:2.2.13.RELEASE:compile (optional) [INFO] +- redis.clients:jedis:jar:3.1.0:compile [INFO] | \- org.apache.commons:commons-pool2:jar:2.7.0:compile [INFO] +- io.jsonwebtoken:jjwt-api:jar:0.11.5:compile [INFO] +- io.jsonwebtoken:jjwt-impl:jar:0.11.5:runtime [INFO] \- io.jsonwebtoken:jjwt-jackson:jar:0.11.5:runtime [INFO] \- com.fasterxml.jackson.core:jackson-databind:jar:2.10.5.1:compile [INFO] +- com.fasterxml.jackson.core:jackson-annotations:jar:2.10.5:compile [INFO] \- com.fasterxml.jackson.core:jackson-core:jar:2.10.5:compile [INFO] ------------------------------------------------------------------------ 2.applicaion.properties中的配置内容为logging.config=classpath:logback-spring.xml 3.src/main/resources目录下存在logback-spring.xml文件,但之前里面没有那两行<include>配置项,现已添加。
07-19
Microsoft Windows [版本 10.0.19045.6456] (c) Microsoft Corporation。保留所有权利。 C:\Users\Administrator>D:\test\spzx-manager\target\ 'D:\test\spzx-manager\target\' 不是内部或外部命令,也不是可运行的程序 或批处理文件。 C:\Users\Administrator>cd /d "D:\新建文件夹 (4)\spzx-parent\spzx-manager\target" D:\新建文件夹 (4)\spzx-parent\spzx-manager\target>jar -tf spzx-manager-1.0-SNAPSHOT.jar | findstr BOOT-INF BOOT-INF/ BOOT-INF/classes/ BOOT-INF/classes/com/ BOOT-INF/classes/com/atgui/ BOOT-INF/classes/com/atgui/spzx/ BOOT-INF/classes/com/atgui/spzx/manager/ BOOT-INF/classes/com/atgui/spzx/manager/config/ BOOT-INF/classes/com/atgui/spzx/manager/controller/ BOOT-INF/classes/com/atgui/spzx/manager/helper/ BOOT-INF/classes/com/atgui/spzx/manager/interceptor/ BOOT-INF/classes/com/atgui/spzx/manager/listener/ BOOT-INF/classes/com/atgui/spzx/manager/mapper/ BOOT-INF/classes/com/atgui/spzx/manager/properties/ BOOT-INF/classes/com/atgui/spzx/manager/service/ BOOT-INF/classes/com/atgui/spzx/manager/service/impl/ BOOT-INF/classes/com/atgui/spzx/manager/task/ BOOT-INF/classes/mapper/ BOOT-INF/classes/mapper/user/ BOOT-INF/classes/application-dev.yml.bak BOOT-INF/classes/application.yml BOOT-INF/classes/com/atgui/spzx/manager/config/WebMvcConfiguration.class BOOT-INF/classes/com/atgui/spzx/manager/controller/BrandController.class BOOT-INF/classes/com/atgui/spzx/manager/controller/CategoryBrandController.class BOOT-INF/classes/com/atgui/spzx/manager/controller/CategoryController.class BOOT-INF/classes/com/atgui/spzx/manager/controller/FileUploadController.class BOOT-INF/classes/com/atgui/spzx/manager/controller/IndexController.class BOOT-INF/classes/com/atgui/spzx/manager/controller/OrderInfoController.class BOOT-INF/classes/com/atgui/spzx/manager/controller/ProductController.class BOOT-INF/classes/com/atgui/spzx/manager/controller/ProductSpecController.class BOOT-INF/classes/com/atgui/spzx/manager/controller/ProductUnitController.class BOOT-INF/classes/com/atgui/spzx/manager/controller/SysMenuController.class BOOT-INF/classes/com/atgui/spzx/manager/controller/SysRoleController.class BOOT-INF/classes/com/atgui/spzx/manager/controller/SysRoleMenuController.class BOOT-INF/classes/com/atgui/spzx/manager/controller/SysUserController.class BOOT-INF/classes/com/atgui/spzx/manager/helper/MenuHelper.class BOOT-INF/classes/com/atgui/spzx/manager/interceptor/LoginAuthInterceptor.class BOOT-INF/classes/com/atgui/spzx/manager/listener/ExcelListener.class BOOT-INF/classes/com/atgui/spzx/manager/ManagerApplication.class BOOT-INF/classes/com/atgui/spzx/manager/mapper/BrandMapper.class BOOT-INF/classes/com/atgui/spzx/manager/mapper/CategoryBrandMapper.class BOOT-INF/classes/com/atgui/spzx/manager/mapper/CategoryMapper.class BOOT-INF/classes/com/atgui/spzx/manager/mapper/OrderInfoMapper.class BOOT-INF/classes/com/atgui/spzx/manager/mapper/OrderStatisticsMapper.class BOOT-INF/classes/com/atgui/spzx/manager/mapper/ProductDetailsMapper.class BOOT-INF/classes/com/atgui/spzx/manager/mapper/ProductMapper.class BOOT-INF/classes/com/atgui/spzx/manager/mapper/ProductSkuMapper.class BOOT-INF/classes/com/atgui/spzx/manager/mapper/ProductSpecMapper.class BOOT-INF/classes/com/atgui/spzx/manager/mapper/ProductUnitMapper.class BOOT-INF/classes/com/atgui/spzx/manager/mapper/SysMenuMapper.class BOOT-INF/classes/com/atgui/spzx/manager/mapper/SysOperLogMapper.class BOOT-INF/classes/com/atgui/spzx/manager/mapper/SysRoleMapper.class BOOT-INF/classes/com/atgui/spzx/manager/mapper/SysRoleMenuMapper.class BOOT-INF/classes/com/atgui/spzx/manager/mapper/SysRoleUserMapper.class BOOT-INF/classes/com/atgui/spzx/manager/mapper/SysUserMapper.class BOOT-INF/classes/com/atgui/spzx/manager/properties/MinioProperties.class BOOT-INF/classes/com/atgui/spzx/manager/properties/UserAuthProperties.class BOOT-INF/classes/com/atgui/spzx/manager/service/BrandService.class BOOT-INF/classes/com/atgui/spzx/manager/service/CategoryBrandService.class BOOT-INF/classes/com/atgui/spzx/manager/service/CategoryService.class BOOT-INF/classes/com/atgui/spzx/manager/service/FileUploadService.class BOOT-INF/classes/com/atgui/spzx/manager/service/impl/AsyncOperLogServiceImpl.class BOOT-INF/classes/com/atgui/spzx/manager/service/impl/BrandServiceImpl.class BOOT-INF/classes/com/atgui/spzx/manager/service/impl/CategoryBrandServiceImpl.class BOOT-INF/classes/com/atgui/spzx/manager/service/impl/CategoryServiceImpl.class BOOT-INF/classes/com/atgui/spzx/manager/service/impl/FileUploadServiceImpl.class BOOT-INF/classes/com/atgui/spzx/manager/service/impl/OrderInfoServiceImpl.class BOOT-INF/classes/com/atgui/spzx/manager/service/impl/ProductServiceImpl.class BOOT-INF/classes/com/atgui/spzx/manager/service/impl/ProductSpecServiceImpl.class BOOT-INF/classes/com/atgui/spzx/manager/service/impl/ProductUnitServiceImpl.class BOOT-INF/classes/com/atgui/spzx/manager/service/impl/SysMenuServiceImpl.class BOOT-INF/classes/com/atgui/spzx/manager/service/impl/SysRoleMenuServiceImpl.class BOOT-INF/classes/com/atgui/spzx/manager/service/impl/SysRoleServiceImpl.class BOOT-INF/classes/com/atgui/spzx/manager/service/impl/SysUserServiceImpl.class BOOT-INF/classes/com/atgui/spzx/manager/service/impl/ValidateCodeServiceImpl.class BOOT-INF/classes/com/atgui/spzx/manager/service/OrderInfoService.class BOOT-INF/classes/com/atgui/spzx/manager/service/ProductService.class BOOT-INF/classes/com/atgui/spzx/manager/service/ProductSpecService.class BOOT-INF/classes/com/atgui/spzx/manager/service/ProductUnitService.class BOOT-INF/classes/com/atgui/spzx/manager/service/SysMenuService.class BOOT-INF/classes/com/atgui/spzx/manager/service/SysRoleMenuService.class BOOT-INF/classes/com/atgui/spzx/manager/service/SysRoleService.class BOOT-INF/classes/com/atgui/spzx/manager/service/SysUserService.class BOOT-INF/classes/com/atgui/spzx/manager/service/ValidateCodeService.class BOOT-INF/classes/com/atgui/spzx/manager/task/OrderStatisticsTask.class BOOT-INF/classes/logback-spring.xml BOOT-INF/classes/mapper/user/BrandMapper.xml BOOT-INF/classes/mapper/user/CategoryBrandMapper.xml BOOT-INF/classes/mapper/user/CategoryMapper.xml BOOT-INF/classes/mapper/user/OrderInfoMapper.xml BOOT-INF/classes/mapper/user/OrderStatisticsMapper.xml BOOT-INF/classes/mapper/user/ProductDetailsMapper.xml BOOT-INF/classes/mapper/user/ProductMapper.xml BOOT-INF/classes/mapper/user/ProductSkuMapper.xml BOOT-INF/classes/mapper/user/ProductSpecMapper.xml BOOT-INF/classes/mapper/user/ProductUnitMapper.xml BOOT-INF/classes/mapper/user/SysMenuMapper.xml BOOT-INF/classes/mapper/user/SysOperLogMapper.xml BOOT-INF/classes/mapper/user/SysRoleMapper.xml BOOT-INF/classes/mapper/user/SysRoleMenuMapper.xml BOOT-INF/classes/mapper/user/SysRoleUserMapper.xml BOOT-INF/classes/mapper/user/SysUserMapper.xml BOOT-INF/classes/mybatis-config.xml BOOT-INF/lib/ BOOT-INF/lib/spring-boot-3.0.5.jar BOOT-INF/lib/spring-boot-autoconfigure-3.0.5.jar BOOT-INF/lib/logback-classic-1.4.6.jar BOOT-INF/lib/logback-core-1.4.6.jar BOOT-INF/lib/log4j-to-slf4j-2.19.0.jar BOOT-INF/lib/log4j-api-2.19.0.jar BOOT-INF/lib/jul-to-slf4j-2.0.7.jar BOOT-INF/lib/snakeyaml-1.33.jar BOOT-INF/lib/jackson-databind-2.14.2.jar BOOT-INF/lib/jackson-annotations-2.14.2.jar BOOT-INF/lib/jackson-datatype-jdk8-2.14.2.jar BOOT-INF/lib/jackson-datatype-jsr310-2.14.2.jar BOOT-INF/lib/jackson-module-parameter-names-2.14.2.jar BOOT-INF/lib/tomcat-embed-core-10.1.7.jar BOOT-INF/lib/tomcat-embed-el-10.1.7.jar BOOT-INF/lib/tomcat-embed-websocket-10.1.7.jar BOOT-INF/lib/spring-web-6.0.7.jar BOOT-INF/lib/spring-beans-6.0.7.jar BOOT-INF/lib/micrometer-observation-1.10.5.jar BOOT-INF/lib/micrometer-commons-1.10.5.jar BOOT-INF/lib/spring-webmvc-6.0.7.jar BOOT-INF/lib/spring-aop-6.0.7.jar BOOT-INF/lib/spring-context-6.0.7.jar BOOT-INF/lib/spring-expression-6.0.7.jar BOOT-INF/lib/spring-data-redis-3.0.4.jar BOOT-INF/lib/spring-data-keyvalue-3.0.4.jar BOOT-INF/lib/spring-data-commons-3.0.4.jar BOOT-INF/lib/spring-tx-6.0.7.jar BOOT-INF/lib/spring-oxm-6.0.7.jar BOOT-INF/lib/spring-context-support-6.0.7.jar BOOT-INF/lib/lettuce-core-6.2.3.RELEASE.jar BOOT-INF/lib/netty-common-4.1.90.Final.jar BOOT-INF/lib/netty-handler-4.1.90.Final.jar BOOT-INF/lib/netty-resolver-4.1.90.Final.jar BOOT-INF/lib/netty-buffer-4.1.90.Final.jar BOOT-INF/lib/netty-transport-native-unix-common-4.1.90.Final.jar BOOT-INF/lib/netty-codec-4.1.90.Final.jar BOOT-INF/lib/netty-transport-4.1.90.Final.jar BOOT-INF/lib/reactor-core-3.5.4.jar BOOT-INF/lib/reactive-streams-1.0.4.jar BOOT-INF/lib/mybatis-spring-boot-starter-3.0.1.jar BOOT-INF/lib/HikariCP-5.0.1.jar BOOT-INF/lib/spring-jdbc-6.0.7.jar BOOT-INF/lib/mybatis-spring-boot-autoconfigure-3.0.1.jar BOOT-INF/lib/mybatis-3.5.11.jar BOOT-INF/lib/mybatis-spring-3.0.1.jar BOOT-INF/lib/mysql-connector-j-8.0.32.jar BOOT-INF/lib/common-service-1.0-SNAPSHOT.jar BOOT-INF/lib/common-util-1.0-SNAPSHOT.jar BOOT-INF/lib/fastjson-2.0.21.jar BOOT-INF/lib/fastjson2-extension-2.0.21.jar BOOT-INF/lib/fastjson2-2.0.21.jar BOOT-INF/lib/minio-8.5.2.jar BOOT-INF/lib/simple-xml-safe-2.7.1.jar BOOT-INF/lib/guava-30.1.1-jre.jar BOOT-INF/lib/failureaccess-1.0.1.jar BOOT-INF/lib/listenablefuture-9999.0-empty-to-avoid-conflict-with-guava.jar BOOT-INF/lib/jsr305-3.0.2.jar BOOT-INF/lib/checker-qual-3.8.0.jar BOOT-INF/lib/error_prone_annotations-2.5.1.jar BOOT-INF/lib/j2objc-annotations-1.3.jar BOOT-INF/lib/okhttp-4.10.0.jar BOOT-INF/lib/okio-jvm-3.0.0.jar BOOT-INF/lib/kotlin-stdlib-jdk8-1.7.22.jar BOOT-INF/lib/kotlin-stdlib-jdk7-1.7.22.jar BOOT-INF/lib/kotlin-stdlib-common-1.7.22.jar BOOT-INF/lib/kotlin-stdlib-1.7.22.jar BOOT-INF/lib/annotations-13.0.jar BOOT-INF/lib/bcprov-jdk15on-1.69.jar BOOT-INF/lib/commons-compress-1.21.jar BOOT-INF/lib/snappy-java-1.1.8.4.jar BOOT-INF/lib/spzx-model-1.0-SNAPSHOT.jar BOOT-INF/lib/lombok-1.18.20.jar BOOT-INF/lib/knife4j-openapi3-jakarta-spring-boot-starter-4.1.0.jar BOOT-INF/lib/knife4j-core-4.1.0.jar BOOT-INF/lib/knife4j-openapi3-ui-4.1.0.jar BOOT-INF/lib/springdoc-openapi-starter-common-2.0.4.jar BOOT-INF/lib/swagger-core-jakarta-2.2.8.jar BOOT-INF/lib/commons-lang3-3.12.0.jar BOOT-INF/lib/jakarta.validation-api-3.0.2.jar BOOT-INF/lib/jackson-dataformat-yaml-2.14.2.jar BOOT-INF/lib/springdoc-openapi-starter-webflux-ui-2.0.4.jar BOOT-INF/lib/springdoc-openapi-starter-webflux-api-2.0.4.jar BOOT-INF/lib/spring-webflux-6.0.7.jar BOOT-INF/lib/swagger-ui-4.18.1.jar BOOT-INF/lib/webjars-locator-core-0.52.jar BOOT-INF/lib/classgraph-4.8.149.jar BOOT-INF/lib/springdoc-openapi-starter-webmvc-ui-2.0.4.jar BOOT-INF/lib/springdoc-openapi-starter-webmvc-api-2.0.4.jar BOOT-INF/lib/swagger-annotations-jakarta-2.2.8.jar BOOT-INF/lib/swagger-models-jakarta-2.2.8.jar BOOT-INF/lib/easyexcel-3.1.0.jar BOOT-INF/lib/easyexcel-core-3.1.0.jar BOOT-INF/lib/easyexcel-support-3.1.0.jar BOOT-INF/lib/poi-4.1.2.jar BOOT-INF/lib/commons-collections4-4.4.jar BOOT-INF/lib/commons-math3-3.6.1.jar BOOT-INF/lib/SparseBitSet-1.2.jar BOOT-INF/lib/poi-ooxml-4.1.2.jar BOOT-INF/lib/curvesapi-1.06.jar BOOT-INF/lib/poi-ooxml-schemas-4.1.2.jar BOOT-INF/lib/xmlbeans-3.1.0.jar BOOT-INF/lib/commons-csv-1.8.jar BOOT-INF/lib/ehcache-3.9.9.jar BOOT-INF/lib/byte-buddy-1.12.23.jar BOOT-INF/lib/hutool-all-5.5.2.jar BOOT-INF/lib/spring-boot-test-3.0.5.jar BOOT-INF/lib/spring-boot-test-autoconfigure-3.0.5.jar BOOT-INF/lib/json-path-2.7.0.jar BOOT-INF/lib/json-smart-2.4.10.jar BOOT-INF/lib/accessors-smart-2.4.9.jar BOOT-INF/lib/asm-9.3.jar BOOT-INF/lib/jakarta.xml.bind-api-4.0.0.jar BOOT-INF/lib/jakarta.activation-api-2.1.1.jar BOOT-INF/lib/assertj-core-3.23.1.jar BOOT-INF/lib/hamcrest-2.2.jar BOOT-INF/lib/junit-jupiter-5.9.2.jar BOOT-INF/lib/junit-jupiter-api-5.9.2.jar BOOT-INF/lib/opentest4j-1.2.0.jar BOOT-INF/lib/junit-platform-commons-1.9.2.jar BOOT-INF/lib/apiguardian-api-1.1.2.jar BOOT-INF/lib/junit-jupiter-params-5.9.2.jar BOOT-INF/lib/junit-jupiter-engine-5.9.2.jar BOOT-INF/lib/junit-platform-engine-1.9.2.jar BOOT-INF/lib/mockito-core-4.8.1.jar BOOT-INF/lib/byte-buddy-agent-1.12.23.jar BOOT-INF/lib/objenesis-3.2.jar BOOT-INF/lib/mockito-junit-jupiter-4.8.1.jar BOOT-INF/lib/jsonassert-1.5.1.jar BOOT-INF/lib/android-json-0.0.20131108.vaadin1.jar BOOT-INF/lib/spring-core-6.0.7.jar BOOT-INF/lib/spring-jcl-6.0.7.jar BOOT-INF/lib/spring-test-6.0.7.jar BOOT-INF/lib/xmlunit-core-2.9.1.jar BOOT-INF/lib/pagehelper-spring-boot-starter-1.4.3.jar BOOT-INF/lib/pagehelper-spring-boot-autoconfigure-1.4.3.jar BOOT-INF/lib/pagehelper-5.3.1.jar BOOT-INF/lib/jsqlparser-4.2.jar BOOT-INF/lib/common-log-1.0-SNAPSHOT.jar BOOT-INF/lib/aspectjweaver-1.9.19.jar BOOT-INF/lib/spring-cloud-starter-alibaba-nacos-discovery-2022.0.0.0-RC2.jar BOOT-INF/lib/spring-cloud-alibaba-commons-2022.0.0.0-RC2.jar BOOT-INF/lib/nacos-client-2.2.1.jar BOOT-INF/lib/nacos-auth-plugin-2.2.1.jar BOOT-INF/lib/nacos-encryption-plugin-2.2.1.jar BOOT-INF/lib/commons-codec-1.15.jar BOOT-INF/lib/jackson-core-2.14.2.jar BOOT-INF/lib/httpasyncclient-4.1.5.jar BOOT-INF/lib/httpcore-4.4.16.jar BOOT-INF/lib/httpcore-nio-4.4.16.jar BOOT-INF/lib/httpclient-4.5.14.jar BOOT-INF/lib/simpleclient-0.16.0.jar BOOT-INF/lib/simpleclient_tracer_otel-0.16.0.jar BOOT-INF/lib/simpleclient_tracer_common-0.16.0.jar BOOT-INF/lib/simpleclient_tracer_otel_agent-0.16.0.jar BOOT-INF/lib/spring-context-support-1.0.11.jar BOOT-INF/lib/spring-cloud-commons-4.0.2.jar BOOT-INF/lib/spring-security-crypto-6.0.2.jar BOOT-INF/lib/spring-cloud-context-4.0.2.jar BOOT-INF/lib/spring-cloud-starter-alibaba-sentinel-2022.0.0.0-RC2.jar BOOT-INF/lib/sentinel-transport-simple-http-1.8.6.jar BOOT-INF/lib/sentinel-transport-common-1.8.6.jar BOOT-INF/lib/sentinel-datasource-extension-1.8.6.jar BOOT-INF/lib/sentinel-annotation-aspectj-1.8.6.jar BOOT-INF/lib/sentinel-core-1.8.6.jar BOOT-INF/lib/spring-cloud-circuitbreaker-sentinel-2022.0.0.0-RC2.jar BOOT-INF/lib/sentinel-reactor-adapter-1.8.6.jar BOOT-INF/lib/sentinel-spring-webflux-adapter-1.8.6.jar BOOT-INF/lib/sentinel-spring-webmvc-6x-adapter-1.8.6.jar BOOT-INF/lib/sentinel-parameter-flow-control-1.8.6.jar BOOT-INF/lib/concurrentlinkedhashmap-lru-1.4.2.jar BOOT-INF/lib/sentinel-cluster-server-default-1.8.6.jar BOOT-INF/lib/sentinel-cluster-common-default-1.8.6.jar BOOT-INF/lib/sentinel-cluster-client-default-1.8.6.jar BOOT-INF/lib/spring-cloud-alibaba-sentinel-datasource-2022.0.0.0-RC2.jar BOOT-INF/lib/spring-cloud-starter-alibaba-nacos-config-2022.0.0.0-RC2.jar BOOT-INF/lib/slf4j-api-2.0.7.jar BOOT-INF/lib/jakarta.annotation-api-2.1.1.jar BOOT-INF/lib/spring-boot-jarmode-layertools-3.0.5.jar BOOT-INF/classpath.idx BOOT-INF/layers.idx D:\新建文件夹 (4)\spzx-parent\spzx-manager\target>
最新发布
11-12
评论 1
成就一亿技术人!
拼手气红包6.0元
还能输入1000个字符
 
红包 添加红包
表情包 插入表情
 条评论被折叠 查看
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

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

抵扣说明:

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

余额充值