mirror of
https://gitee.com/dromara/MaxKey.git
synced 2026-05-14 12:32:09 +08:00
swagger 5.15.0 knife4j 4.5.0
This commit is contained in:
@@ -111,6 +111,9 @@ public class MaxKeyMvcConfig implements WebMvcConfigurer {
|
||||
.addPathPatterns("/logout")
|
||||
.addPathPatterns("/logout/**")
|
||||
.addPathPatterns("/authz/refused")
|
||||
.excludePathPatterns("/swagger-ui/**")
|
||||
.excludePathPatterns("/swagger-resources/**")
|
||||
.excludePathPatterns("/v3/api-docs/**")
|
||||
;
|
||||
|
||||
logger.debug("add Permission Interceptor");
|
||||
|
||||
@@ -47,9 +47,11 @@ import org.springframework.http.ResponseEntity;
|
||||
import org.springframework.security.core.Authentication;
|
||||
import org.springframework.stereotype.Controller;
|
||||
import org.springframework.web.bind.annotation.PathVariable;
|
||||
import org.springframework.web.bind.annotation.PostMapping;
|
||||
import org.springframework.web.bind.annotation.RequestBody;
|
||||
import org.springframework.web.bind.annotation.RequestMapping;
|
||||
import org.springframework.web.bind.annotation.RequestParam;
|
||||
import org.springframework.web.bind.annotation.RestController;
|
||||
|
||||
import io.swagger.v3.oas.annotations.Operation;
|
||||
import io.swagger.v3.oas.annotations.tags.Tag;
|
||||
@@ -61,7 +63,7 @@ import jakarta.servlet.http.HttpServletResponse;
|
||||
*
|
||||
*/
|
||||
@Tag(name = "1-1-登录接口文档模块")
|
||||
@Controller
|
||||
@RestController
|
||||
@RequestMapping(value = "/login")
|
||||
public class LoginEntryPoint {
|
||||
private static Logger logger = LoggerFactory.getLogger(LoginEntryPoint.class);
|
||||
@@ -213,7 +215,8 @@ public class LoginEntryPoint {
|
||||
* @param loginCredential
|
||||
* @return
|
||||
*/
|
||||
@RequestMapping(value={"/signin"}, produces = {MediaType.APPLICATION_JSON_VALUE})
|
||||
@Operation(summary = "登录接口", description = "登录接口",method="POST")
|
||||
@PostMapping(value={"/signin"}, produces = {MediaType.APPLICATION_JSON_VALUE})
|
||||
public ResponseEntity<?> signin( HttpServletRequest request, HttpServletResponse response,
|
||||
@RequestBody LoginCredential credential) {
|
||||
Message<AuthJwt> authJwtMessage = new Message<AuthJwt>(Message.FAIL);
|
||||
|
||||
@@ -292,7 +292,7 @@ springdoc.swagger-ui.showExtensions =true
|
||||
springdoc.api-docs.path =/v3/api-docs
|
||||
springdoc.group-configs[0].group =default
|
||||
springdoc.group-configs[0].paths-to-match =/*
|
||||
springdoc.group-configs[0].packages-to-scan =org.maxkey
|
||||
springdoc.group-configs[0].packages-to-scan =org.dromara.maxkey
|
||||
|
||||
knife4j.enable =true
|
||||
knife4j.setting.language =zh_cn
|
||||
|
||||
@@ -225,7 +225,7 @@ springdoc.swagger-ui.showExtensions =true
|
||||
springdoc.api-docs.path =/v3/api-docs
|
||||
springdoc.group-configs[0].group =default
|
||||
springdoc.group-configs[0].paths-to-match =/*
|
||||
springdoc.group-configs[0].packages-to-scan =org.maxkey
|
||||
springdoc.group-configs[0].packages-to-scan =org.dromara.maxkey
|
||||
|
||||
knife4j.enable =true
|
||||
knife4j.setting.language =zh_cn
|
||||
|
||||
@@ -225,7 +225,7 @@ springdoc.swagger-ui.showExtensions =true
|
||||
springdoc.api-docs.path =/v3/api-docs
|
||||
springdoc.group-configs[0].group =default
|
||||
springdoc.group-configs[0].paths-to-match =/*
|
||||
springdoc.group-configs[0].packages-to-scan =org.maxkey
|
||||
springdoc.group-configs[0].packages-to-scan =org.dromara.maxkey
|
||||
|
||||
knife4j.enable =true
|
||||
knife4j.setting.language =zh_cn
|
||||
|
||||
Reference in New Issue
Block a user