mirror of
https://gitee.com/durcframework/SOP.git
synced 2025-08-11 21:57:56 +08:00
去掉redis依赖
This commit is contained in:
@@ -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);
|
||||
}
|
||||
}
|
Reference in New Issue
Block a user