1、引入lombok支持,重构JavaBean 将 常规getter/setter去除
2、去除Gson 依赖
This commit is contained in:
@@ -1,10 +1,10 @@
|
||||
package net.tccn.service;
|
||||
|
||||
import com.arangodb.Predicate;
|
||||
import com.google.gson.Gson;
|
||||
import net.tccn.base.FileKit;
|
||||
import net.tccn.base.MetaKit;
|
||||
import net.tccn.base.TplKit;
|
||||
import org.redkale.convert.json.JsonConvert;
|
||||
import org.redkale.net.http.RestMapping;
|
||||
import org.redkale.service.Service;
|
||||
import org.redkale.source.CacheSource;
|
||||
@@ -26,10 +26,12 @@ import java.util.logging.Logger;
|
||||
*/
|
||||
public class BaseService implements Service {
|
||||
|
||||
protected final static JsonConvert convert = JsonConvert.root();
|
||||
|
||||
@Resource(name = "SERVER_ROOT")
|
||||
protected File webroot;
|
||||
|
||||
public static Gson gson = new Gson();
|
||||
|
||||
public Logger logger = Logger.getLogger(this.getClass().getSimpleName());
|
||||
|
||||
public static Predicate isEmpty = (x) -> {
|
||||
|
||||
Reference in New Issue
Block a user