修改数据库

This commit is contained in:
沈健
2024-09-20 17:37:43 +08:00
parent 25f657574a
commit e59df996ea
@@ -34,8 +34,8 @@ public class FileDao {
IMPORTANT_CATEGORY = Arrays.asList(System.getProperty("fangjia.important.category", "data_file,district,shop,office,avatar,flash,user_house,upload").split(","));
try {
filesCollection = new Mongo("fs.mongo.db.fangjia.com", 27000).getDB("fangjia_fs").getCollection("files");
gridFs = new GridFS(filesCollection.getDB(), "fangjia_fs");
filesCollection = new Mongo("fs.mongo.db.fangjia.com", 27000).getDB("fangjia").getCollection("files");
gridFs = new GridFS(filesCollection.getDB(), "fangjia");
cappedCollection = new Mongo("capped.mongo.db.fangjia.com", Integer.getInteger("capped.mongo.port", 27000)).getDB("fangjia_fs").getCollection("files_capped");
} catch (Exception e) {
e.printStackTrace();