From 8122e35574b9a4af6e374b1bd033cab8715d27b3 Mon Sep 17 00:00:00 2001 From: yitonglei Date: Thu, 12 May 2022 10:35:55 +0800 Subject: [PATCH] =?UTF-8?q?1.=E6=9F=A5=E8=AF=A2=E6=89=80=E6=9C=89=E6=91=84?= =?UTF-8?q?=E5=83=8F=E5=A4=B4=20selectAll=20=E5=A2=9E=E5=8A=A0=E7=BC=93?= =?UTF-8?q?=E5=AD=98?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- pom.xml | 13 +++++ .../MonitorManageApplication.java | 4 +- .../monitormanage/config/CachingConfig.java | 33 ++++++++++++ .../monitormanage/controller/Controller.java | 17 +++--- .../mapper/CameraChannelMapper.java | 2 +- .../service/CameraChannelService.java | 45 ++++++++++++++++ .../monitormanage/utils/EhcacheUtil.java | 52 +++++++++++++++++++ src/main/resources/ehcache.xml | 33 ++++++++++++ .../resources/mapper/CameraChannelMapper.xml | 6 +-- 9 files changed, 193 insertions(+), 12 deletions(-) create mode 100644 src/main/java/com/hisense/monitormanage/config/CachingConfig.java create mode 100644 src/main/java/com/hisense/monitormanage/service/CameraChannelService.java create mode 100644 src/main/java/com/hisense/monitormanage/utils/EhcacheUtil.java create mode 100644 src/main/resources/ehcache.xml diff --git a/pom.xml b/pom.xml index ff52262..57176d2 100644 --- a/pom.xml +++ b/pom.xml @@ -68,6 +68,19 @@ javacv-platform 1.5.7 + + + org.springframework.boot + spring-boot-starter-cache + 2.4.4 + + + + net.sf.ehcache + ehcache + 2.10.6 + + + + + + + + + + + \ No newline at end of file diff --git a/src/main/resources/mapper/CameraChannelMapper.xml b/src/main/resources/mapper/CameraChannelMapper.xml index 7360bbb..f82012f 100644 --- a/src/main/resources/mapper/CameraChannelMapper.xml +++ b/src/main/resources/mapper/CameraChannelMapper.xml @@ -12,9 +12,9 @@ \ No newline at end of file