|
|
@@ -1,5 +1,6 @@
|
|
|
package com.xingxi.web.core.config;
|
|
|
|
|
|
+import org.springframework.beans.factory.annotation.Autowired;
|
|
|
import org.springframework.beans.factory.annotation.Value;
|
|
|
import org.springframework.context.annotation.Bean;
|
|
|
import org.springframework.context.annotation.Configuration;
|
|
|
@@ -24,7 +25,10 @@ public class SwaggerConfig
|
|
|
/** 是否开启swagger */
|
|
|
@Value("${swagger.enabled}")
|
|
|
private boolean enabled;
|
|
|
-
|
|
|
+
|
|
|
+ @Autowired
|
|
|
+ private RuoYiConfig rouYiConfig;
|
|
|
+
|
|
|
/**
|
|
|
* 创建API
|
|
|
*/
|