首页/新闻资讯/正文详情

Springboot 集成 Ehcache操作数据库显示SQL语句设置

发布时间:2026/9/25 2:10:16 来源:云帆数科 栏目:资讯中心
Springboot 集成 Ehcache操作数据库显示SQL语句设置
Springboot 集成 Ehcache操作数据库显示SQL语句设置2023-09-1323:33:35.030 INFO6124---[task-1]o.hibernate.jpa.internal.util.LogHelper:HHH000204: Processing PersistenceUnitInfo[name: default]2023-09-1323:33:35.124 INFO6124---[task-1]org.hibernate.Version:HHH000412: Hibernate ORM core version5.4.20.Final2023-09-1323:33:35.137 WARN6124---[main]JpaBaseConfiguration$JpaWebConfiguration:spring.jpa.open-in-view is enabled by default. Therefore, database queries may be performed during view rendering. Explicitly configure spring.jpa.open-in-view to disable this warning2023-09-1323:33:35.380 INFO6124---[task-1]o.hibernate.annotations.common.Version:HCANN000001: Hibernate Commons Annotations{5.1.0.Final}2023-09-1323:33:35.572 INFO6124---[task-1]org.hibernate.dialect.Dialect:HHH000400: Using dialect: org.hibernate.dialect.MySQL57Dialect2023-09-1323:33:35.621 WARN6124---[main]ion$DefaultTemplateResolverConfiguration:Cannotfindtemplate location: classpath:/templates/(pleaseaddsome templates or check your Thymeleaf configuration)2023-09-1323:33:35.819 INFO6124---[main]o.s.b.w.embedded.tomcat.TomcatWebServer:Tomcat started on port(s):8081(http)with context path/ehcache2023-09-1323:33:35.821 INFO6124---[main]DeferredRepositoryInitializationListener:Triggering deferred initialization of Spring Data repositories…2023-09-1323:33:36.410 INFO6124---[task-1]o.h.e.t.j.p.i.JtaPlatformInitiator:HHH000490: Using JtaPlatform implementation:[org.hibernate.engine.transaction.jta.platform.internal.NoJtaPlatform]2023-09-1323:33:36.420 INFO6124---[task-1]j.LocalContainerEntityManagerFactoryBean:Initialized JPA EntityManagerFactoryforpersistence unitdefault2023-09-1323:33:36.670 INFO6124---[main]DeferredRepositoryInitializationListener:Spring Data repositories initialized!2023-09-1323:33:36.681 INFO6124---[main]org.bc.device.EhcacheApplication:Started EhcacheApplicationin6.344seconds(JVM runningfor7.048)2023-09-1323:33:42.253 INFO6124---[nio-8081-exec-1]o.a.c.c.C.[.[localhost].[/ehcache]:Initializing Spring DispatcherServletdispatcherServlet2023-09-1323:33:42.254 INFO6124---[nio-8081-exec-1]o.s.web.servlet.DispatcherServlet:Initializing ServletdispatcherServlet2023-09-1323:33:42.264 INFO6124---[nio-8081-exec-1]o.s.web.servlet.DispatcherServlet:Completed initializationin10ms2023-09-1323:33:42.305 INFO6124---[nio-8081-exec-1]o.b.d.controller.EmployeeController:findAll请求时间2023-09-13T23:33:42.3056641002023-09-1323:33:42.310 INFO6124---[nio-8081-exec-1]org.bc.device.config.EhcacheConfig:ehcache key str: org.bc.device.service.EmployeeService:findAll2023-09-1323:33:42.312 INFO6124---[nio-8081-exec-1]org.bc.device.config.EhcacheConfig:ehcache key md5DigestAsHex: 363a29df59ef3a5e8c7fbae68bbdb2132023-09-1323:33:42.314 INFO6124---[nio-8081-exec-1]org.bc.device.config.EhcacheConfig:ehcache key str: org.bc.device.service.EmployeeService:findAll2023-09-1323:33:42.314 INFO6124---[nio-8081-exec-1]org.bc.device.config.EhcacheConfig:ehcache key md5DigestAsHex: 363a29df59ef3a5e8c7fbae68bbdb2132023-09-1323:33:42.323 INFO6124---[nio-8081-exec-1]org.bc.device.service.EmployeeService:findAll查询数据库 Hibernate:selecttbinfemplo0_.id as id1_0_, tbinfemplo0_.age as age2_0_, tbinfemplo0_.department as departme3_0_, tbinfemplo0_.hire_date as hire_dat4_0_, tbinfemplo0_.emp_name as emp_name5_0_, tbinfemplo0_.salary as salary6_0_ from tb_inf_employee tbinfemplo0_2023-09-1323:33:42.590 INFO6124---[nio-8081-exec-1]o.b.d.controller.EmployeeController:findAll返回结果[TbInfEmployee(id1,name1,age1,salary1.0,department1,hireDate2023-09-13), TbInfEmployee(id2,name1,age1,salary1.0,department1,hireDate2023-09-13), TbInfEmployee(id3,name1,age1,salary1.0,department1,hireDate2023-09-13), TbInfEmployee(id4,name1,age1,salary1.0,department1,hireDate2023-09-13), TbInfEmployee(id5,name1,age1,salary1.0,department1,hireDate2023-09-13), TbInfEmployee(id6,name1,age1,salary11.0,department1,hireDate2023-09-13)]2023-09-1323:33:42.613 INFO6124---[nio-8081-exec-1]o.b.d.controller.EmployeeController:findAll返回时间2023-09-13T23:33:42.613281300server: port:8081servlet: context-path: /ehcache spring: datasource: driver-class-name: com.mysql.cj.jdbc.Driver type: com.alibaba.druid.pool.DruidDataSource username: root password: url: jdbc:mysql://127.0.0.1:3306/test_ehcache?characterEncodingutf8useUnicodetrueuseSSLfalsezeroDateTimeBehaviorconvertToNullautoReconnecttrueallowMultiQueriestruefailOverReadOnlyfalseconnectTimeout6000maxReconnects5initialSize:5minIdle:5maxActive:20cache: type: ehcache ehcache: config: classpath:/ehcache.xml jpa: properties: hibernate: format_sql:trueshow_sql:true配置如下jpa:properties:hibernate:format_sql: trueshow_sql: true

相关推荐

zip4cj构建与测试指南:cjpm编译、stdx配置与HLT/LLT/UT三层测试体系
zip4cj构建与测试指南:cjpm编译、stdx配置与HLT/LLT/UT三层测试体系

zip4cj构建与测试指南:cjpm编译、stdx配置与HLT/LLT/UT三层测试体系 【免费下载链接】zip4cj 一个用于创建和解压ZIP压缩格式的库 项目地址: https://gitcode.com/Cangjie-TPC/zip4cj zip4cj 是基于仓颉语言实现的 ZIP 压缩解压缩库,本文带你用 c… · 2026/9/25 2:10:16

CNN改进实战:残差连接、批归一化与通道注意力提升CIFAR-10分类
CNN改进实战:残差连接、批归一化与通道注意力提升CIFAR-10分类

做深度学习实验的同学,大概率都经历过这样一段时期:拿一个公开数据集,把经典模型跑通,准确率也还可以,但总觉得自己的工作“差点意思”。想改进 CNN,又不知道从哪个方向下手;好不容易加了模块&a… · 2026/9/25 2:10:10

大模型RL面试速查:Hands-On Modern RL附录中PPO、DPO、GRPO核心代码片段全解
大模型RL面试速查:Hands-On Modern RL附录中PPO、DPO、GRPO核心代码片段全解

大模型RL面试速查:Hands-On Modern RL附录中PPO、DPO、GRPO核心代码片段全解 【免费下载链接】hands-on-modern-rl 🚀 An open-source, hands-on curriculum bridging the gap from basic RL concepts to LLM alignment, RLVR, and advanced Agentic sys… · 2026/9/25 2:10:10

CiLocks的keyevent速查表:8个Android按键码如何操控锁屏界面
CiLocks的keyevent速查表:8个Android按键码如何操控锁屏界面

CiLocks的keyevent速查表:8个Android按键码如何操控锁屏界面 【免费下载链接】CiLocks Crack Interface lockscreen, Metasploit and More Android/IOS Hacking 项目地址: https://gitcode.com/GitHub_Trending/ci/CiLocks CiLocks 是一款开源的 Android 锁屏… · 2026/9/25 2:36:01

BilibiliCacheVideoMerge路线图与社区指南:B站缓存视频合并为何转向Flutter重构?Issues与贡献完整清单
BilibiliCacheVideoMerge路线图与社区指南:B站缓存视频合并为何转向Flutter重构?Issues与贡献完整清单

BilibiliCacheVideoMerge路线图与社区指南:B站缓存视频合并为何转向Flutter重构?Issues与贡献完整清单 【免费下载链接】BilibiliCacheVideoMerge 🔥🔥Android上将bilibili缓存视频合并导出为mp4,支持安卓5.0 ~ 13&… · 2026/9/25 2:36:01

PaddleSpeech 标点恢复实战:基于 ERNIE 的 IWSLT2012-中文标点预测全流程指南
PaddleSpeech 标点恢复实战:基于 ERNIE 的 IWSLT2012-中文标点预测全流程指南

人工智能语音音频NLP媒体生成 【免费下载链接】PaddleSpeech Easy-to-use Speech Toolkit including Self-Supervised Learning model, SOTA/Streaming ASR with punctuation, Streaming TTS with text frontend, Speaker Verification System, End-to-End Speech Translation … · 2026/9/25 2:36:01

wheel-picker-cj 源码拆解:双 Scroll 同步实现滚轮吸附的底层原理
wheel-picker-cj 源码拆解:双 Scroll 同步实现滚轮吸附的底层原理

wheel-picker-cj 源码拆解:双 Scroll 同步实现滚轮吸附的底层原理 【免费下载链接】wheel-picker-cj 滚轮选择UI组件 项目地址: https://gitcode.com/Cangjie-TPC/wheel-picker-cj wheel-picker-cj 是一款基于仓颉(Cangjie)语言开发的… · 2026/9/25 2:36:01

阿里云部署OpenClaw:79元/年搭24小时AI代理,TaoToken统一Key接入配置指南
阿里云部署OpenClaw:79元/年搭24小时AI代理,TaoToken统一Key接入配置指南

/* MD / 富文本中的 .toc(含博客园搬家等嵌套结构);.toc-box 在侧栏,不受影响 */#content_views .toc,/* 编辑器常在目录前后插入空 p(:empty 仍占 20px),一并去掉避免顶空隙 */#content_views.markdown_views > p:empty:has(+ .toc),#content_views.markdown_views … · 2026/9/25 2:36:01

Comp AI CRM 渲染性能实践:用 useTransition 取代手动加载状态,告别多余重渲染
Comp AI CRM 渲染性能实践:用 useTransition 取代手动加载状态,告别多余重渲染

后端前端CRM人工智能AI Agent 【免费下载链接】crm Comp AI CRM is an open source, CRM designed for AI agents. Agentic-first CRM. 项目地址: https://gitcode.com/gh_mirrors/crm48/crm 点击查看 免费下载 本指南基于 Comp AI CRM 仓库内置的 Vercel React 最… · 2026/9/25 2:35:55

数值优化(Numerical Optimization)学习系列-03-共轭梯度方法(Conjugate Gradient)
数值优化(Numerical Optimization)学习系列-03-共轭梯度方法(Conjugate Gradient)

/* MD / 富文本中的 .toc(含博客园搬家等嵌套结构);.toc-box 在侧栏,不受影响 */#content_views .toc,/* 编辑器常在目录前后插入空 p(:empty 仍占 20px),一并去掉避免顶空隙 */#content_views.markdown_views > p:empty:has(+ .toc),#content_views.markdown_views … · 2026/9/25 1:00:31

创维E900V22D刷机全攻略:S905L3SB芯片兼容性解析与救砖实战
创维E900V22D刷机全攻略:S905L3SB芯片兼容性解析与救砖实战

/* MD / 富文本中的 .toc(含博客园搬家等嵌套结构);.toc-box 在侧栏,不受影响 */#content_views .toc,/* 编辑器常在目录前后插入空 p(:empty 仍占 20px),一并去掉避免顶空隙 */#content_views.markdown_views > p:empty:has(+ .toc),#content_views.markdown_views … · 2026/9/25 1:00:31

MQTT协议原理与Broker服务器搭建实战:从Mosquitto到EMQX
MQTT协议原理与Broker服务器搭建实战:从Mosquitto到EMQX

/* MD / 富文本中的 .toc(含博客园搬家等嵌套结构);.toc-box 在侧栏,不受影响 */#content_views .toc,/* 编辑器常在目录前后插入空 p(:empty 仍占 20px),一并去掉避免顶空隙 */#content_views.markdown_views > p:empty:has(+ .toc),#content_views.markdown_views … · 2026/9/25 1:00:37

了解更多?预约专属演示

我们的顾问将为您一对一讲解产品与方案

企业微信二维码