新闻详情

新闻详情

首页 / 资讯中心 / 详情

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

发布时间:2026/11/17 19:18:04来源:尧图网络
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
网站建设高端定制企业官网
RELATED

相关资讯

更多精彩内容,欢迎继续阅读

较早相关资讯

最新相关资讯

【外设】之大彩串口显示屏 2026/11/17 7:04:08

【外设】之大彩串口显示屏

大彩串口屏初步使用 1 .官网下载 STM32 屏幕 GUI 设计资料 http://www.gz-dc.com/category/typeid/4112 找到 STM32 Keil 工程,移植相关代码因项目而异进行移植,由于项目简单,本人只对用到的指令接口进行修改。 比如:注意事项&…

阅读更多 →
无法下载Windows系统iso文件 2026/11/18 14:20:46

无法下载Windows系统iso文件

当我遇到这个问题的时候,我打开了一个网站: 登录 然后我打算下载的时候: 突然那个官方的连接就可以下载了:

阅读更多 →
【清华代码熊】DeepSeek V4.1 Flash 后训练详解 2026/11/17 19:43:34

【清华代码熊】DeepSeek V4.1 Flash 后训练详解

📌 上期解析了 DeepSeek V4.1 Flash 模型架构改进,本期解析 DeepSeek V4.1 Flash 预训练/后训练技术: 🌟 预训练:45T 文本 多模态混合语料、直接训练 sparse attention(取消 DeepSeek V4 的 dense 冷启动&…

阅读更多 →
Shuffle-R1: Efficient RL framework for Multimodal Large Language Models via Data-centric Dynamic ... 2026/11/18 11:04:06

Shuffle-R1: Efficient RL framework for Multimodal Large Language Models via Data-centric Dynamic ...

文章主要内容和创新点 主要内容 本文聚焦于多模态大语言模型(MLLM)强化学习(RL)训练中的效率问题,提出了一个名为Shuffle-R1的框架。研究发现,当前RL训练存在两个关键缺陷: 优势值坍缩(Advantage Collapsing):批次中大多数优势值集中在零附近,导致有效梯度信号被淹…

阅读更多 →
PRvL: Quantifying the Capabilities and Risks of Large Language Models for PII Redaction 2026/11/18 15:55:22

PRvL: Quantifying the Capabilities and Risks of Large Language Models for PII Redaction

一、文章主要内容总结 本文聚焦于利用大型语言模型(LLMs)实现个人身份信息(PII)脱敏的研究,旨在解决传统脱敏方法(如基于规则的系统、领域特定命名实体识别(NER)模型)泛化能力差、跨格式/跨语境适应性弱的问题。 研究通过全面评估多种LLM架构(包括密集型LLM(D-LLM…

阅读更多 →
LLaVA-RE: Binary Image-Text Relevancy Evaluation with Multimodal Large Language Model 2026/11/17 19:43:32

LLaVA-RE: Binary Image-Text Relevancy Evaluation with Multimodal Large Language Model

文章主要内容和创新点 主要内容 本文聚焦于二进制图像-文本相关性评估任务(判断图像与文本“相关”或“不相关”),针对该任务中文本格式多样、相关性定义随场景变化等挑战,提出了基于多模态大语言模型(MLLM)的解决方案LLaVA-RE。 模型设计:LLaVA-RE基于LLaVA 1.5架构,…

阅读更多 →

今日资讯

本周资讯

本月资讯

看完文章仍有疑问?

联系尧图顾问,获取一对一建站咨询

立即免费咨询 📞 400-888-8888
📞 ✉