feat:update wxpay
This commit is contained in:
2
pom.xml
2
pom.xml
@@ -6,7 +6,7 @@
|
||||
|
||||
<groupId>org.wfc</groupId>
|
||||
<artifactId>wfc</artifactId>
|
||||
<version>${wfc.version}</version>
|
||||
<version>1.0.2</version>
|
||||
|
||||
<name>wfc</name>
|
||||
<description>WANFi Control and Billing Management System</description>
|
||||
|
||||
@@ -1,11 +1,8 @@
|
||||
package org.wfc.payment.wxpay.config;
|
||||
|
||||
import lombok.extern.slf4j.Slf4j;
|
||||
import org.springframework.beans.factory.annotation.Autowired;
|
||||
import org.springframework.context.EnvironmentAware;
|
||||
import org.springframework.context.annotation.Bean;
|
||||
import org.springframework.context.annotation.Configuration;
|
||||
import org.springframework.core.env.Environment;
|
||||
import org.springframework.web.servlet.config.annotation.ResourceHandlerRegistry;
|
||||
import org.springframework.web.servlet.config.annotation.WebMvcConfigurationSupport;
|
||||
import io.swagger.v3.oas.models.OpenAPI;
|
||||
@@ -17,15 +14,7 @@ import org.springdoc.core.GroupedOpenApi;
|
||||
|
||||
@Configuration
|
||||
@Slf4j
|
||||
public class SwaggerConfig extends WebMvcConfigurationSupport implements EnvironmentAware {
|
||||
@Autowired
|
||||
private Environment environment;
|
||||
|
||||
@Override
|
||||
public void setEnvironment(Environment environment) {
|
||||
this.environment = environment;
|
||||
}
|
||||
|
||||
public class SwaggerConfig extends WebMvcConfigurationSupport {
|
||||
@Override
|
||||
public void addResourceHandlers(ResourceHandlerRegistry registry) {
|
||||
registry.addResourceHandler("swagger-ui.html")
|
||||
@@ -40,7 +29,7 @@ public class SwaggerConfig extends WebMvcConfigurationSupport implements Environ
|
||||
public GroupedOpenApi publicApi() {
|
||||
return GroupedOpenApi.builder()
|
||||
.group("public")
|
||||
.pathsToMatch("/payment/**")
|
||||
.pathsToMatch("/api/payment/**")
|
||||
.packagesToScan("org.wfc.payment.wxpay.controller")
|
||||
.build();
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user