我不想从.xml文件中获取信息,然后在各种不同的方法中使用这些信息。为此,我找到了一个我实现的解决方案,运行良好,但有点笨拙。我使用此方法从XML中读取所需的所有内容: class ReadAndLoad public List<CharacterAttributes> FetchAttributes因为目前如果我想引入一些其他数据,就必须
我已经编写了CacheLoader和CacheWriter使用spring data JPA和数据源作为spring bean来连接到数据库并获取data...now,我需要在服务器cache...How我想我需要在cache.xml中使用下面的元素,并从gfsh命令外壳中引用这个xml文件: <class-name>org.springframework.data.gemfire.support.SpringContextBo