在Weblogic上部署的SpringBoot应用程序-休眠日志记录

我在SpringBoot服务器上部署了weblogic 12.2应用。

启动应用程序时,我可以在控制台中看到类似的内容

  .   ____          _            __ _ _
 /\\ / ___'_ __ _ _(_)_ __  __ _ \ \ \ \
( ( )\___ | '_ | '_| | '_ \/ _` | \ \ \ \
 \\/  ___)| |_)| | | | | || (_| |  ) ) ) )
  '  |____| .__|_| |_|_| |_\__,| / / / /
 =========|_|==============|___/=/_/_/_/
:: Spring Boot ::        (v2.1.8.RELEASE)

2019-11-05 10:40:09.581  INFO 7660 --- [ (self-tuning)'] o.s.boot.SpringApplication               : Starting application on ...

进一步

2019-11-05 10:40:10.982  INFO 7660 --- [ (self-tuning)'] .s.d.r.c.RepositoryConfigurationDelegate : Finished Spring Data repository scanning in 15ms. Found 1 repository interfaces.
nov. 05,2019 10:40:12 AM org.hibernate.Version logVersion                                                                
INFO: HHH000412: Hibernate Core {5.3.11.Final}                                                                            
<05-nov.-2019,10:40:12,878 AM CET> <Info> <org.hibernate.Version> <BEA-000000> <HHH000412: Hibernate Core {5.3.11.Final}>

如果我在weblogic之外运行相同的应用程序,则

2019-11-05 10:49:16.871  INFO 11688 --- [           main] .s.d.r.c.RepositoryConfigurationDelegate : Finished Spring Data repository scanning in 32ms. Found 1 repository interfaces.
2019-11-05 10:49:17.902  INFO 11688 --- [           main] org.hibernate.Version                    : HHH000412: Hibernate Core {5.3.11.Final}

似乎所有的org.hibernate都不具有相同的模式。但是我不明白为什么以及如何更改它。

我尝试通过application.propreties进行更改,但无法正常工作。即使使用logging.level.org.hibernate=off也没有变化。

我的application.properties包含

#debug=true
ds1.spring.datasource.jndi-name=...
ds2.spring.datasource.jndi-name=...
# Let Spring autodetect the different SQL Dialects of each datasource
spring.jpa.database=default
# Tells Hibernate to generate SQL's with exactly names as specified in @table or @column
spring.jpa.hibernate.naming.physical-strategy=org.hibernate.boot.model.naming.PhysicalNamingStrategyStandardImpl
# Show sql
spring.jpa.show-sql=true
#spring.jpa.properties.hibernate.format_sql=true
# Show Parameters bindings
logging.level.org.hibernate.type.descriptor.sql.BasicBinder=TRACE
#spring.jpa.properties.hibernate.type=trace
# Show Extracted data
logging.level.org.hibernate.type.descriptor.sql.BasicExtractor=TRACE

对于pom.xml来说,它要复杂得多,因为它是一个多模块项目,而我公司需要做很多事情。

chenglong767 回答:在Weblogic上部署的SpringBoot应用程序-休眠日志记录

暂时没有好的解决方案,如果你有好的解决方案,请发邮件至:iooj@foxmail.com
本文链接:https://www.f2er.com/3160612.html

大家都在问