整理代码结构

This commit is contained in:
2018-06-04 13:34:30 +08:00
parent 7e2f99675b
commit 08ef1781dd
15 changed files with 324 additions and 267 deletions

View File

@@ -1,7 +1,10 @@
package com.lxyer.bbs.base;
import com.lxyer.bbs.base.user.UserInfo;
import org.redkale.service.Service;
import org.redkale.source.CacheSource;
import org.redkale.source.DataSource;
import org.redkalex.cache.RedisCacheSource;
import javax.annotation.Resource;
import java.io.File;
@@ -19,6 +22,12 @@ public class BaseService implements Service {
@Resource(name = "art123")
protected DataSource source;
@Resource(name = "redis")
protected RedisCacheSource<Integer> sessions;
@Resource(name = "userInfos")
protected CacheSource<UserInfo> userInfos;
protected static final boolean winos = System.getProperty("os.name").contains("Window");
}