新闻详情

新闻详情

首页 / 资讯中心 / 详情

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

发布时间:2026/9/25 2:10:15来源:尧图网络
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

相关资讯

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

较早相关资讯

最新相关资讯

Reddit Ads 审计实战:基于 Claude Ads 的 Reddit 广告账户健康评估控制面与证据链指南 2026/9/25 2:51:34

Reddit Ads 审计实战:基于 Claude Ads 的 Reddit 广告账户健康评估控制面与证据链指南

【免费下载链接】claude-ads Claude-first paid-media operations skill for Claude Code across 12 ad platforms (Google, Meta, YouTube, LinkedIn, TikTok, Microsoft, Apple, Amazon, Reddit, Pinterest, Snapchat, X): source-grounded audits, deterministic scoring, v…

阅读更多 →
highlight.io 前端 GraphQL 定义维护指南:如何修改 Apollo Client 的 query.gql 与 mutation.gql 并驱动代码生成 2026/9/25 2:51:34

highlight.io 前端 GraphQL 定义维护指南:如何修改 Apollo Client 的 query.gql 与 mutation.gql 并驱动代码生成

可观测性后端 【免费下载链接】highlight highlight.io: The open source, full-stack monitoring platform. Error monitoring, session replay, logging, distributed tracing, and more. 项目地址: https://gitcode.com/gh_mirrors/hi/highlight 点击查看 免费下…

阅读更多 →
《ChatGPT 微服务应用体系构建》dev-ops 第1节:本地工程 PUSH 到远程代码仓库的 Git 实战指南 2026/9/25 2:51:28

《ChatGPT 微服务应用体系构建》dev-ops 第1节:本地工程 PUSH 到远程代码仓库的 Git 实战指南

文档教程后端 【免费下载链接】CodeGuide :books: 本代码库是作者小傅哥多年从事一线互联网 Java 开发的学习历程技术汇总,旨在为大家提供一个清晰详细的学习教程,侧重点更倾向编写Java核心内容。如果本仓库能为您提供帮助,请给予支持(关注、…

阅读更多 →
ClawHub 的 technical-documentation 技能实战:构建人与 Agent 双端可用的技术文档体系 2026/9/25 2:51:28

ClawHub 的 technical-documentation 技能实战:构建人与 Agent 双端可用的技术文档体系

后端前端AI 技能AI 插件搜索引擎 【免费下载链接】clawhub Skill Plugin Registry for OpenClaw 项目地址: https://gitcode.com/gh_mirrors/mo/clawhub 点击查看 免费下载 本文是 ClawHub 开源仓库中 .agents/skills/technical-documentation/SKILL.md 及其完整参…

阅读更多 →
环保无铅焊锡丝批发厂家南唐金属材料,1.0mm免洗锡线低飞溅 2026/9/25 2:51:28

环保无铅焊锡丝批发厂家南唐金属材料,1.0mm免洗锡线低飞溅

随着电子制造产业绿色升级,环保无铅焊锡丝行业迎来合规化发展新机遇全球电子制造业近年来逐步完成绿色转型,各国对电子消费品的有害物质管控标准不断收紧,国内RoHS环保标准的全面落地,也推动焊锡材料完成从有铅向无铅的全面升级。…

阅读更多 →
USB转I2C总线扫描实战:400KHz速率下地址探测与Excel报告 2026/9/25 2:51:21

USB转I2C总线扫描实战:400KHz速率下地址探测与Excel报告

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

阅读更多 →

今日资讯

本周资讯

本月资讯

看完文章仍有疑问?

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

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