saddfaasdvc

This commit is contained in:
2022-02-11 09:06:19 +08:00
parent bb41afa86c
commit 9db8142a1a
12 changed files with 898 additions and 13 deletions

View File

@ -11,6 +11,7 @@ import com.fasterxml.jackson.databind.ObjectMapper;
import com.xkrs.dao.FireDao;
import com.xkrs.model.entity.Fire;
import com.xkrs.websocket.server.WebSocketServer;
import org.springframework.cache.annotation.CacheEvict;
import org.springframework.jms.annotation.JmsListener;
import org.springframework.stereotype.Component;
@ -31,6 +32,7 @@ public class TopicConsumerListener {
* 订阅火情报警信息
* @param message
*/
@CacheEvict(value = "FireServiceCache",allEntries = true)
@JmsListener(destination="${spring.activemq.topic-name}", containerFactory="topicListener")
public void readActiveQueue(String message) throws IOException {
ObjectMapper objectMapper = new ObjectMapper();