Commit c1fabd26 authored by fangxinjiang's avatar fangxinjiang

swagger3 鉴权调整

parent 128848f5
...@@ -7,7 +7,10 @@ import com.yifu.cloud.plus.v1.yifu.common.log.annotation.SysLog; ...@@ -7,7 +7,10 @@ import com.yifu.cloud.plus.v1.yifu.common.log.annotation.SysLog;
import com.yifu.cloud.plus.v1.yifu.common.security.annotation.Inner; import com.yifu.cloud.plus.v1.yifu.common.security.annotation.Inner;
import lombok.RequiredArgsConstructor; import lombok.RequiredArgsConstructor;
import org.springframework.boot.autoconfigure.condition.ConditionalOnProperty; import org.springframework.boot.autoconfigure.condition.ConditionalOnProperty;
import org.springframework.web.bind.annotation.*; 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.RestController;
/** /**
* @author lengleng * @author lengleng
...@@ -18,7 +21,6 @@ import org.springframework.web.bind.annotation.*; ...@@ -18,7 +21,6 @@ import org.springframework.web.bind.annotation.*;
@RestController @RestController
@RequestMapping("/register") @RequestMapping("/register")
@RequiredArgsConstructor @RequiredArgsConstructor
@ConditionalOnProperty(name = "register.user", matchIfMissing = true)
public class RegisterController { public class RegisterController {
private final SysUserService userService; private final SysUserService userService;
...@@ -35,10 +37,4 @@ public class RegisterController { ...@@ -35,10 +37,4 @@ public class RegisterController {
return userService.registerUser(userDto); return userService.registerUser(userDto);
} }
@SysLog("test")
@GetMapping("/test")
public R<String> registerUser(String name) {
return R.ok(name);
}
} }
...@@ -93,8 +93,8 @@ spring: ...@@ -93,8 +93,8 @@ spring:
activate: activate:
on-profile: test on-profile: test
redis: redis:
host: 192.168.1.65 host: 127.0.0.1
port: 22379 port: 6379
password: '@yf_2017' password: '@yf_2017'
datasource: datasource:
type: com.zaxxer.hikari.HikariDataSource type: com.zaxxer.hikari.HikariDataSource
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment