mirror of
https://gitee.com/smallc/blade-tool.git
synced 2026-07-10 18:39:44 +08:00
feat(swagger): 为SwaggerLauncherServiceImpl添加自动服务注解
- 引入AutoService注解 - 在SwaggerLauncherServiceImpl类上添加@AutoService(LauncherService.class) - 实现LauncherService接口的自动注册功能
This commit is contained in:
parent
457c1d53f9
commit
f56afb2eff
|
|
@ -15,6 +15,7 @@
|
|||
*/
|
||||
package org.springblade.core.swagger;
|
||||
|
||||
import net.dreamlu.mica.auto.annotation.AutoService;
|
||||
import org.springblade.core.launch.constant.AppConstant;
|
||||
import org.springblade.core.launch.service.LauncherService;
|
||||
import org.springframework.boot.builder.SpringApplicationBuilder;
|
||||
|
|
@ -27,6 +28,7 @@ import java.util.Properties;
|
|||
*
|
||||
* @author Chill
|
||||
*/
|
||||
@AutoService(LauncherService.class)
|
||||
public class SwaggerLauncherServiceImpl implements LauncherService {
|
||||
@Override
|
||||
public void launcher(SpringApplicationBuilder builder, String appName, String profile) {
|
||||
|
|
|
|||
|
|
@ -1 +0,0 @@
|
|||
org.springblade.core.swagger.SwaggerLauncherServiceImpl
|
||||
Loading…
Reference in New Issue
Block a user