Merge branch 'master' into eureka

eureka
tanghc 5 years ago
commit bbd1581240
  1. 7
      sop-admin/sop-admin-server/pom.xml
  2. 24
      sop-admin/sop-admin-server/src/main/java/com/gitee/sop/adminserver/controller/IndexController.java

@ -41,7 +41,7 @@
<!-- easyopen starter -->
<dependency>
<groupId>net.oschina.durcframework</groupId>
<artifactId>easyopen-spring-boot-starter</artifactId>
<artifactId>easyopen</artifactId>
<version>1.16.5</version>
</dependency>
@ -72,11 +72,6 @@
<artifactId>spring-boot-starter-thymeleaf</artifactId>
</dependency>
<dependency>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-starter-data-redis</artifactId>
</dependency>
<dependency>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-starter-test</artifactId>

@ -0,0 +1,24 @@
package com.gitee.sop.adminserver.controller;
import com.gitee.easyopen.ApiConfig;
import com.gitee.easyopen.support.ApiController;
import org.springframework.beans.factory.annotation.Value;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;
/**
* api入口
*/
@Controller
@RequestMapping("api")
public class IndexController extends ApiController {
@Value("${easyopen.show-doc:false}")
private String showDoc;
@Override
protected void initApiConfig(ApiConfig apiConfig) {
apiConfig.setShowDoc(Boolean.valueOf(showDoc));
apiConfig.setIgnoreValidate(true);
}
}
Loading…
Cancel
Save