整理代码结构
This commit is contained in:
@@ -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");
|
||||
|
||||
}
|
||||
|
Reference in New Issue
Block a user