.
This commit is contained in:
@@ -17,7 +17,7 @@ import java.util.function.Function;
|
||||
/**
|
||||
* @author: liangxianyou at 2018/11/18 9:02.
|
||||
*/
|
||||
@RestService(automapping = false, comment = "Arango服务")
|
||||
@RestService(automapping = true, comment = "Arango服务")
|
||||
public class ArangoService extends BaseService {
|
||||
|
||||
protected static final boolean winos = System.getProperty("os.name").contains("Window");
|
||||
@@ -43,7 +43,6 @@ public class ArangoService extends BaseService {
|
||||
protected static ArangoDatabase dbDev;
|
||||
protected static ArangoCollection colVisLog;
|
||||
|
||||
/* todo:启用本service 打开注释
|
||||
@Override
|
||||
public void init(AnyValue config) {
|
||||
System.out.println("isDev :" + isDev);
|
||||
@@ -58,7 +57,7 @@ public class ArangoService extends BaseService {
|
||||
if (!colVisLog.exists()) {
|
||||
colVisLog.create();
|
||||
}
|
||||
}*/
|
||||
}
|
||||
|
||||
@RestMapping(auth = false)
|
||||
public List<Map> hi() {
|
||||
@@ -77,7 +76,7 @@ public class ArangoService extends BaseService {
|
||||
});
|
||||
}
|
||||
|
||||
/*public static long findInt(String aql) {
|
||||
public static long findInt(String aql) {
|
||||
return dbDev.query(aql, long.class).first();
|
||||
}
|
||||
public static long findInt(String aql, Map para) {
|
||||
@@ -91,6 +90,6 @@ public class ArangoService extends BaseService {
|
||||
public static <T> List<T> find(String aql, Map para, Class<T> clazz) {
|
||||
|
||||
return dbDev.query(aql, para, clazz).asListRemaining();
|
||||
}*/
|
||||
}
|
||||
|
||||
}
|
||||
|
Reference in New Issue
Block a user