.
This commit is contained in:
@@ -61,6 +61,7 @@ public class BaseServlet extends HttpServlet {
|
||||
response.finish(JBean.by(-2, "未登陆"));
|
||||
} else {
|
||||
//response.setStatus(302);
|
||||
response.setHeader("Content-Type", "text/html;charset=UTF-8");
|
||||
response.setHeader("location", "/user/login.html");
|
||||
response.finish304();
|
||||
}
|
||||
|
||||
@@ -3,7 +3,6 @@ package net.tccn.base.arango;
|
||||
import com.arangodb.ArangoCollection;
|
||||
import com.arangodb.ArangoDB;
|
||||
import com.arangodb.ArangoDatabase;
|
||||
import com.arangodb.Function;
|
||||
import com.arangodb.entity.DocumentCreateEntity;
|
||||
import com.arangodb.entity.DocumentDeleteEntity;
|
||||
import com.arangodb.entity.MultiDocumentEntity;
|
||||
@@ -15,6 +14,7 @@ import javax.persistence.Table;
|
||||
import java.util.Collection;
|
||||
import java.util.HashMap;
|
||||
import java.util.Map;
|
||||
import java.util.function.Function;
|
||||
import java.util.logging.Level;
|
||||
import java.util.logging.Logger;
|
||||
|
||||
|
||||
@@ -164,7 +164,7 @@ public abstract class Doc<T extends Doc> {
|
||||
this.db = arangoSource.db(table.catalog());
|
||||
this.collection = arangoSource.collection(this);
|
||||
} catch (Exception e) {
|
||||
|
||||
e.printStackTrace();
|
||||
}
|
||||
}
|
||||
protected final static <T extends Doc> T dao(Class<T> type) {
|
||||
|
||||
@@ -3,8 +3,7 @@ package net.tccn.plat;
|
||||
import lombok.Getter;
|
||||
import lombok.Setter;
|
||||
import net.tccn.base.arango.Doc;
|
||||
import org.redkale.persistence.Entity;
|
||||
import org.redkale.persistence.Table;
|
||||
import javax.persistence.Table;
|
||||
|
||||
/**
|
||||
* @author: liangxianyou at 2018/11/26 17:46.
|
||||
|
||||
Reference in New Issue
Block a user