Skip to content

Commit

Permalink
移除数据库参数增加@RequestParam
Browse files Browse the repository at this point in the history
否则通过swagger-ui.html无法完成正常的传参调用
  • Loading branch information
zhouxianfeng776 committed Dec 24, 2023
1 parent 104e455 commit f65cea8
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -62,7 +62,7 @@ public Set<String> add(@Validated @RequestBody DataSourceDTO dto) {
* 删除数据源
*/
@DeleteMapping
public String remove(String name) {
public String remove(@RequestParam String name) {
DynamicRoutingDataSource ds = (DynamicRoutingDataSource) dataSource;
ds.removeDataSource(name);
return "删除成功";
Expand Down

0 comments on commit f65cea8

Please sign in to comment.