我编写了一个java程序,其中使用了hibernate。在linux中运行该java程序时,我正在将hibernate日志打印到一个日志文件中,该日志文件由于内置的异常报告(如约束调用异常、启动会话工厂时等)占用了大量内存。但是,为了避免占用内存,我不希望hibernate内置的日志语句打印。我该怎么办?
我的异常日志报告,我不想在日志文件中打印:
org.hibernate.exception.ConstraintViolationException: Could not execute JDBC batch update
at org.hibernate.exception.SQL
我最近迁移到LinuxUbuntu22.04。我成功地安装了Flutter和Android,但是当我尝试运行一个项目时,它会抛出一个异常错误。
线程“主”中的java.net.SocketExpection异常:连接重置
当我还运行flutter doctor时,会标记。下面是我的flutter doctor日志。
Doctor summary (to see all details, run flutter doctor -v):
[✓] Flutter (Channel main, 3.4.0-19.0.pre.295, on Ubuntu 22.04.1 LTS 5.15.0-47-g
我正在使用IntelliJ版本开发一个基于Gradle的Spring /Java应用程序:
IntelliJ IDEA 2017.2.1
Build #IU-172.3544.35, built on July 31, 2017
Subscription is active until April 3, 2018
JRE: 1.8.0_152-release-915-b6 amd64
JVM: OpenJDK 64-Bit Server VM by JetBrains s.r.o
Linux 3.13.0-128-generic
如果我右键单击包含TestRunner测试的项目中的顶级测试目录