我正在尝试使用 spring 为我的应用程序构建缓存服务。缓存需要从数据库填充。
我的应用程序在三个节点上运行,并希望所有三个节点都与缓存同步。如果一个节点在缓存中获得更新的值,它应该通知其他节点。
我查看了Spring Cache 抽象,它没有谈论集群环境中的缓存。
有没有办法将缓存通知传播到其他节点?
在我的 pom.xml 中,如果我给出以下内容,它似乎可以工作。
<plugin>
<artifactId>maven-assembly-plugin</artifactId>
<version>3.0.0</version>
</plugin>
Run Code Online (Sandbox Code Playgroud)
插件不需要groupId吗?如果没有给出groupId,maven如何下载插件?
谢谢
我有兴趣知道spring集成标记中使用的类,以便通过遍历类的javadoc来获取标记的更多细节.
我有两个基本问题:
<bean class=".." />标签?这是一个Spring集成xml上下文文件的简单示例:
<?xml version="1.0" encoding="UTF-8"?>
<beans xmlns="http://www.springframework.org/schema/beans"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xmlns:int="http://www.springframework.org/schema/integration"
xmlns:int-stream="http://www.springframework.org/schema/integration/stream"
xsi:schemaLocation="http://www.springframework.org/schema/beans http://www.springframework.org/schema/beans/spring-beans.xsd
http://www.springframework.org/schema/integration http://www.springframework.org/schema/integration/spring-integration-4.0.xsd
http://www.springframework.org/schema/integration/stream http://www.springframework.org/schema/integration/stream/spring-integration-stream-4.0.xsd">
<int-stream:stdin-channel-adapter id="producer" channel="messageChannel" />
<int:poller id="defaultPoller" default="true" max-messages-per-poll="2" fixed-rate="100" />
<int-stream:stdout-channel-adapter id="consumer" channel="messageChannel" append-newline="true" />
<int:channel id="messageChannel" />
</beans>
Run Code Online (Sandbox Code Playgroud)
谢谢