- html - 出于某种原因,IE8 对我的 Sass 文件中继承的 html5 CSS 不友好?
- JMeter 在响应断言中使用 span 标签的问题
- html - 在 :hover and :active? 上具有不同效果的 CSS 动画
- html - 相对于居中的 html 内容固定的 CSS 重复背景?
如何关闭 log4j2 中的 Dozer 日志条目?
使用 Java 1.8,Dozer 版本:6.4.1,Windows 7 上的 Logger 版本 2.11.2
pom.xml 配置:
<groupId>com.github.dozermapper</groupId>
<artifactId>dozer-core</artifactId>
每次我加载网页或运行 JUnit 测试时,Dozer 都会记录 100 行日志消息,这使得应用程序有点慢。尝试在 log4j2.xml 中执行以下配置以关闭 Dozer 消息,但它不会关闭 Dozer INFO 消息。
<Configuration
xmlns="http://logging.apache.org/log4j/2.0/config" status="WARN">
<Properties>
<Property name="basePath">../cabsys/logs</Property>
</Properties>
<Appenders>
<!-- File Appender -->
<File name="FILE" fileName="${basePath}/cabsys_logfile.log"
append="true">
<PatternLayout
pattern="%-5p | %d{yyyy-MM-dd HH:mm:ss} | [%t] %C{2} (%F:%L) - %m%n" />
</File>
<!-- Console Appender -->
<Console name="STDOUT" target="SYSTEM_OUT">
<PatternLayout
pattern="%-5p | %d{yyyy-MM-dd HH:mm:ss} | [%t] %C{2} (%F:%L) - %m%n" />
<LevelRangeFilter minLevel="INFO" maxLevel="INFO"
onMatch="DENY" onMismatch="NEUTRAL" />
</Console>
</Appenders>
<Loggers>
<Root level="debug">
<AppenderRef ref="STDOUT" />
<AppenderRef ref="FILE" />
</Root>
</Loggers>
<!-- categories -->
<category name="com.github.dozermapper.core.DozerBeanMapperBuilder">
<priority value="OFF" />
</category>
<category name="com.github.dozermapper.core.builder.xml.BeanMappingXMLBuilder">
<priority value="OFF" />
</category>
<category name="com.github.dozermapper.core.config.resolvers.LegacyPropertiesSettingsResolver">
<priority value="OFF" />
</category>
<category name="com.github.dozermapper.core.util.RuntimeUtils">
<priority value="OFF" />
</category>
<category name="com.github.dozermapper.core.el.ELExpressionFactory">
<priority value="OFF" />
</category>
<category name="com.github.dozermapper.core.builder.xml.SchemaLSResourceResolver">
<priority value="OFF" />
</category>
</Configuration>
推土机日志条目:
13:14:52,284 INFO [com.github.dozermapper.core.util.RuntimeUtils] (default task-2) OSGi support is false
13:14:52,290 INFO [com.github.dozermapper.core.DozerBeanMapperBuilder] (default task-2) Initializing Dozer. Version: 6.4.1, Thread Name: default task-2
13:14:52,301 INFO [com.github.dozermapper.core.config.resolvers.LegacyPropertiesSettingsResolver] (default task-2) Trying to find Dozer configuration file: dozer.properties
13:14:52,304 INFO [com.github.dozermapper.core.config.resolvers.LegacyPropertiesSettingsResolver] (default task-2) Using URL [vfs:/D:/mh_stuff/E_drive/installed/wildfly-18.0.1.Final/standalone/deployments/cabsys.war/WEB-INF/classes/dozer.properties] for Dozer settings
13:14:52,322 INFO [com.github.dozermapper.core.el.ELExpressionFactory] (default task-2) javax.el support is true
13:14:52,388 INFO [com.github.dozermapper.core.builder.xml.BeanMappingXMLBuilder] (default task-2) Using URL [dozerBeanMapping.xml] to load custom xml mappings
13:14:53,009 INFO [com.github.dozermapper.core.builder.xml.SchemaLSResourceResolver] (default task-2) Trying to resolve XML entity with public ID [null] and system ID [http://dozermapper.github.io/schema/bean-mapping.xsd]
13:14:53,015 INFO [com.github.dozermapper.core.builder.xml.SchemaLSResourceResolver] (default task-2) Resolved public ID [null] and system ID [http://dozermapper.github.io/schema/bean-mapping.xsd]
13:14:53,030 INFO [com.github.dozermapper.core.builder.xml.BeanMappingXMLBuilder] (default task-2) Successfully loaded custom xml mapping.
13:14:53,188 INFO [com.github.dozermapper.core.DozerBeanMapperBuilder] (default task-2) Initializing Dozer. Version: 6.4.1, Thread Name: default task-2
13:14:53,189 INFO [com.github.dozermapper.core.config.resolvers.LegacyPropertiesSettingsResolver] (default task-2) Trying to find Dozer configuration file: dozer.properties
13:14:53,191 INFO [com.github.dozermapper.core.config.resolvers.LegacyPropertiesSettingsResolver] (default task-2) Using URL [vfs:/D:/mh_stuff/E_drive/installed/wildfly-18.0.1.Final/standalone/deployments/cabsys.war/WEB-INF/classes/dozer.properties] for Dozer settings
13:14:53,197 INFO [com.github.dozermapper.core.builder.xml.BeanMappingXMLBuilder] (default task-2) Using URL [dozerBeanMapping.xml] to load custom xml mappings
13:14:53,259 INFO [com.github.dozermapper.core.builder.xml.SchemaLSResourceResolver] (default task-2) Trying to resolve XML entity with public ID [null] and system ID [http://dozermapper.github.io/schema/bean-mapping.xsd]
13:14:53,261 INFO [com.github.dozermapper.core.builder.xml.SchemaLSResourceResolver] (default task-2) Resolved public ID [null] and system ID [http://dozermapper.github.io/schema/bean-mapping.xsd]
13:14:53,273 INFO [com.github.dozermapper.core.builder.xml.BeanMappingXMLBuilder] (default task-2) Successfully loaded custom xml mapping.
13:14:53,308 INFO [com.github.dozermapper.core.DozerBeanMapperBuilder] (default task-2) Initializing Dozer. Version: 6.4.1, Thread Name: default task-2
13:14:53,309 INFO [com.github.dozermapper.core.config.resolvers.LegacyPropertiesSettingsResolver] (default task-2) Trying to find Dozer configuration file: dozer.properties
13:14:53,312 INFO [com.github.dozermapper.core.config.resolvers.LegacyPropertiesSettingsResolver] (default task-2) Using URL [vfs:/D:/mh_stuff/E_drive/installed/wildfly-18.0.1.Final/standalone/deployments/cabsys.war/WEB-INF/classes/dozer.properties] for Dozer settings
13:14:53,325 INFO [com.github.dozermapper.core.builder.xml.BeanMappingXMLBuilder] (default task-2) Using URL [dozerBeanMapping.xml] to load custom xml mappings
13:14:53,380 INFO [com.github.dozermapper.core.builder.xml.SchemaLSResourceResolver] (default task-2) Trying to resolve XML entity with public ID [null] and system ID [http://dozermapper.github.io/schema/bean-mapping.xsd]
13:14:53,381 INFO [com.github.dozermapper.core.builder.xml.SchemaLSResourceResolver] (default task-2) Resolved public ID [null] and system ID [http://dozermapper.github.io/schema/bean-mapping.xsd]
13:14:53,394 INFO [com.github.dozermapper.core.builder.xml.BeanMappingXMLBuilder] (default task-2) Successfully loaded custom xml mapping.
13:14:53,425 INFO [com.github.dozermapper.core.DozerBeanMapperBuilder] (default task-2) Initializing Dozer. Version: 6.4.1, Thread Name: default task-2
13:14:53,426 INFO [com.github.dozermapper.core.config.resolvers.LegacyPropertiesSettingsResolver] (default task-2) Trying to find Dozer configuration file: dozer.properties
13:14:53,429 INFO [com.github.dozermapper.core.config.resolvers.LegacyPropertiesSettingsResolver] (default task-2) Using URL [vfs:/D:/mh_stuff/E_drive/installed/wildfly-18.0.1.Final/standalone/deployments/cabsys.war/WEB-INF/classes/dozer.properties] for Dozer settings
13:14:53,435 INFO [com.github.dozermapper.core.builder.xml.BeanMappingXMLBuilder] (default task-2) Using URL [dozerBeanMapping.xml] to load custom xml mappings
13:14:53,498 INFO [com.github.dozermapper.core.builder.xml.SchemaLSResourceResolver] (default task-2) Trying to resolve XML entity with public ID [null] and system ID [http://dozermapper.github.io/schema/bean-mapping.xsd]
13:14:53,500 INFO [com.github.dozermapper.core.builder.xml.SchemaLSResourceResolver] (default task-2) Resolved public ID [null] and system ID [http://dozermapper.github.io/schema/bean-mapping.xsd]
13:14:53,513 INFO [com.github.dozermapper.core.builder.xml.BeanMappingXMLBuilder] (default task-2) Successfully loaded custom xml mapping.
13:14:53,621 INFO [com.github.dozermapper.core.DozerBeanMapperBuilder] (default task-2) Initializing Dozer. Version: 6.4.1, Thread Name: default task-2
13:14:53,623 INFO [com.github.dozermapper.core.config.resolvers.LegacyPropertiesSettingsResolver] (default task-2) Trying to find Dozer configuration file: dozer.properties
13:14:53,630 INFO [com.github.dozermapper.core.config.resolvers.LegacyPropertiesSettingsResolver] (default task-2) Using URL [vfs:/D:/mh_stuff/E_drive/installed/wildfly-18.0.1.Final/standalone/deployments/cabsys.war/WEB-INF/classes/dozer.properties] for Dozer settings
13:14:53,637 INFO [com.github.dozermapper.core.builder.xml.BeanMappingXMLBuilder] (default task-2) Using URL [dozerBeanMapping.xml] to load custom xml mappings
13:14:53,715 INFO [com.github.dozermapper.core.builder.xml.SchemaLSResourceResolver] (default task-2) Trying to resolve XML entity with public ID [null] and system ID [http://dozermapper.github.io/schema/bean-mapping.xsd]
13:14:53,718 INFO [com.github.dozermapper.core.builder.xml.SchemaLSResourceResolver] (default task-2) Resolved public ID [null] and system ID [http://dozermapper.github.io/schema/bean-mapping.xsd]
13:14:53,730 INFO [com.github.dozermapper.core.builder.xml.BeanMappingXMLBuilder] (default task-2) Successfully loaded custom xml mapping.
13:14:53,784 INFO [com.github.dozermapper.core.DozerBeanMapperBuilder] (default task-2) Initializing Dozer. Version: 6.4.1, Thread Name: default task-2
13:14:53,784 INFO [com.github.dozermapper.core.config.resolvers.LegacyPropertiesSettingsResolver] (default task-2) Trying to find Dozer configuration file: dozer.properties
13:14:53,800 INFO [com.github.dozermapper.core.config.resolvers.LegacyPropertiesSettingsResolver] (default task-2) Using URL [vfs:/D:/mh_stuff/E_drive/installed/wildfly-18.0.1.Final/standalone/deployments/cabsys.war/WEB-INF/classes/dozer.properties] for Dozer settings
13:14:53,808 INFO [com.github.dozermapper.core.builder.xml.BeanMappingXMLBuilder] (default task-2) Using URL [dozerBeanMapping.xml] to load custom xml mappings
13:14:53,888 INFO [com.github.dozermapper.core.builder.xml.SchemaLSResourceResolver] (default task-2) Trying to resolve XML entity with public ID [null] and system ID [http://dozermapper.github.io/schema/bean-mapping.xsd]
13:14:53,890 INFO [com.github.dozermapper.core.builder.xml.SchemaLSResourceResolver] (default task-2) Resolved public ID [null] and system ID [http://dozermapper.github.io/schema/bean-mapping.xsd]
13:14:53,931 INFO [com.github.dozermapper.core.builder.xml.BeanMappingXMLBuilder] (default task-2) Successfully loaded custom xml mapping.
13:14:54,009 INFO [com.github.dozermapper.core.DozerBeanMapperBuilder] (default task-2) Initializing Dozer. Version: 6.4.1, Thread Name: default task-2
13:14:54,009 INFO [com.github.dozermapper.core.config.resolvers.LegacyPropertiesSettingsResolver] (default task-2) Trying to find Dozer configuration file: dozer.properties
13:14:54,012 INFO [com.github.dozermapper.core.config.resolvers.LegacyPropertiesSettingsResolver] (default task-2) Using URL [vfs:/D:/mh_stuff/E_drive/installed/wildfly-18.0.1.Final/standalone/deployments/cabsys.war/WEB-INF/classes/dozer.properties] for Dozer settings
13:14:54,018 INFO [com.github.dozermapper.core.builder.xml.BeanMappingXMLBuilder] (default task-2) Using URL [dozerBeanMapping.xml] to load custom xml mappings
13:14:54,059 INFO [com.github.dozermapper.core.builder.xml.SchemaLSResourceResolver] (default task-2) Trying to resolve XML entity with public ID [null] and system ID [http://dozermapper.github.io/schema/bean-mapping.xsd]
13:14:54,061 INFO [com.github.dozermapper.core.builder.xml.SchemaLSResourceResolver] (default task-2) Resolved public ID [null] and system ID [http://dozermapper.github.io/schema/bean-mapping.xsd]
13:14:54,071 INFO [com.github.dozermapper.core.builder.xml.BeanMappingXMLBuilder] (default task-2) Successfully loaded custom xml mapping.
13:14:54,100 INFO [com.github.dozermapper.core.DozerBeanMapperBuilder] (default task-2) Initializing Dozer. Version: 6.4.1, Thread Name: default task-2
13:14:54,101 INFO [com.github.dozermapper.core.config.resolvers.LegacyPropertiesSettingsResolver] (default task-2) Trying to find Dozer configuration file: dozer.properties
13:14:54,109 INFO [com.github.dozermapper.core.config.resolvers.LegacyPropertiesSettingsResolver] (default task-2) Using URL [vfs:/D:/mh_stuff/E_drive/installed/wildfly-18.0.1.Final/standalone/deployments/cabsys.war/WEB-INF/classes/dozer.properties] for Dozer settings
13:14:54,117 INFO [com.github.dozermapper.core.builder.xml.BeanMappingXMLBuilder] (default task-2) Using URL [dozerBeanMapping.xml] to load custom xml mappings
13:14:54,166 INFO [com.github.dozermapper.core.builder.xml.SchemaLSResourceResolver] (default task-2) Trying to resolve XML entity with public ID [null] and system ID [http://dozermapper.github.io/schema/bean-mapping.xsd]
13:14:54,167 INFO [com.github.dozermapper.core.builder.xml.SchemaLSResourceResolver] (default task-2) Resolved public ID [null] and system ID [http://dozermapper.github.io/schema/bean-mapping.xsd]
13:14:54,179 INFO [com.github.dozermapper.core.builder.xml.BeanMappingXMLBuilder] (default task-2) Successfully loaded custom xml mapping.
13:14:54,234 INFO [com.github.dozermapper.core.DozerBeanMapperBuilder] (default task-2) Initializing Dozer. Version: 6.4.1, Thread Name: default task-2
13:14:54,235 INFO [com.github.dozermapper.core.config.resolvers.LegacyPropertiesSettingsResolver] (default task-2) Trying to find Dozer configuration file: dozer.properties
13:14:54,237 INFO [com.github.dozermapper.core.config.resolvers.LegacyPropertiesSettingsResolver] (default task-2) Using URL [vfs:/D:/mh_stuff/E_drive/installed/wildfly-18.0.1.Final/standalone/deployments/cabsys.war/WEB-INF/classes/dozer.properties] for Dozer settings
13:14:54,243 INFO [com.github.dozermapper.core.builder.xml.BeanMappingXMLBuilder] (default task-2) Using URL [dozerBeanMapping.xml] to load custom xml mappings
13:14:54,281 INFO [com.github.dozermapper.core.builder.xml.SchemaLSResourceResolver] (default task-2) Trying to resolve XML entity with public ID [null] and system ID [http://dozermapper.github.io/schema/bean-mapping.xsd]
13:14:54,283 INFO [com.github.dozermapper.core.builder.xml.SchemaLSResourceResolver] (default task-2) Resolved public ID [null] and system ID [http://dozermapper.github.io/schema/bean-mapping.xsd]
13:14:54,294 INFO [com.github.dozermapper.core.builder.xml.BeanMappingXMLBuilder] (default task-2) Successfully loaded custom xml mapping.
13:14:54,324 INFO [com.github.dozermapper.core.DozerBeanMapperBuilder] (default task-2) Initializing Dozer. Version: 6.4.1, Thread Name: default task-2
13:14:54,324 INFO [com.github.dozermapper.core.config.resolvers.LegacyPropertiesSettingsResolver] (default task-2) Trying to find Dozer configuration file: dozer.properties
13:14:54,330 INFO [com.github.dozermapper.core.config.resolvers.LegacyPropertiesSettingsResolver] (default task-2) Using URL [vfs:/D:/mh_stuff/E_drive/installed/wildfly-18.0.1.Final/standalone/deployments/cabsys.war/WEB-INF/classes/dozer.properties] for Dozer settings
13:14:54,337 INFO [com.github.dozermapper.core.builder.xml.BeanMappingXMLBuilder] (default task-2) Using URL [dozerBeanMapping.xml] to load custom xml mappings
13:14:54,392 INFO [com.github.dozermapper.core.builder.xml.SchemaLSResourceResolver] (default task-2) Trying to resolve XML entity with public ID [null] and system ID [http://dozermapper.github.io/schema/bean-mapping.xsd]
13:14:54,393 INFO [com.github.dozermapper.core.builder.xml.SchemaLSResourceResolver] (default task-2) Resolved public ID [null] and system ID [http://dozermapper.github.io/schema/bean-mapping.xsd]
13:14:54,406 INFO [com.github.dozermapper.core.builder.xml.BeanMappingXMLBuilder] (default task-2) Successfully loaded custom xml mapping.
13:14:54,438 INFO [com.github.dozermapper.core.DozerBeanMapperBuilder] (default task-2) Initializing Dozer. Version: 6.4.1, Thread Name: default task-2
13:14:54,438 INFO [com.github.dozermapper.core.config.resolvers.LegacyPropertiesSettingsResolver] (default task-2) Trying to find Dozer configuration file: dozer.properties
13:14:54,442 INFO [com.github.dozermapper.core.config.resolvers.LegacyPropertiesSettingsResolver] (default task-2) Using URL [vfs:/D:/mh_stuff/E_drive/installed/wildfly-18.0.1.Final/standalone/deployments/cabsys.war/WEB-INF/classes/dozer.properties] for Dozer settings
13:14:54,448 INFO [com.github.dozermapper.core.builder.xml.BeanMappingXMLBuilder] (default task-2) Using URL [dozerBeanMapping.xml] to load custom xml mappings
13:14:54,486 INFO [com.github.dozermapper.core.builder.xml.SchemaLSResourceResolver] (default task-2) Trying to resolve XML entity with public ID [null] and system ID [http://dozermapper.github.io/schema/bean-mapping.xsd]
13:14:54,486 INFO [com.github.dozermapper.core.builder.xml.SchemaLSResourceResolver] (default task-2) Resolved public ID [null] and system ID [http://dozermapper.github.io/schema/bean-mapping.xsd]
13:14:54,495 INFO [com.github.dozermapper.core.builder.xml.BeanMappingXMLBuilder] (default task-2) Successfully loaded custom xml mapping.
`
<project xmlns="http://maven.apache.org/POM/4.0.0"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/maven-v4_0_0.xsd">
<modelVersion>4.0.0</modelVersion>
<groupId>com.tvaksa.cabsys</groupId>
<artifactId>cabsys</artifactId>
<packaging>war</packaging>
<version>1.0-SNAPSHOT</version>
<name>cabsys</name>
<url>http://localhost:8080/cabsys</url>
<properties>
<!-- Dependency versions -->
<log4j.version>2.11.2</log4j.version>
<org.mapstruct.version>1.3.1.Final</org.mapstruct.version>
<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
<maven.compiler.source>1.8</maven.compiler.source>
<maven.compiler.target>1.8</maven.compiler.target>
<m2e.apt.activation>jdt_apt</m2e.apt.activation>
</properties>
<dependencies>
<!-- MapStruct Mapper -->
<dependency>
<groupId>org.mapstruct</groupId>
<artifactId>mapstruct</artifactId>
<version>${org.mapstruct.version}</version>
</dependency>
<dependency>
<groupId>org.projectlombok</groupId>
<artifactId>lombok</artifactId>
<version>1.18.16</version>
<scope>provided</scope>
</dependency>
<!-- Dozer Mapper -->
<dependency>
<groupId>com.github.dozermapper</groupId>
<artifactId>dozer-core</artifactId>
<version>6.4.1</version>
</dependency>
<!-- Apache Logging utilty -->
<dependency>
<groupId>org.apache.logging.log4j</groupId>
<artifactId>log4j-api</artifactId>
<version>${log4j.version}</version>
</dependency>
<dependency>
<groupId>org.apache.logging.log4j</groupId>
<artifactId>log4j-core</artifactId>
<version>${log4j.version}</version>
</dependency>
<dependency>
<groupId>javax</groupId>
<artifactId>javaee-api</artifactId>
<version>7.0</version>
<scope>provided</scope>
</dependency>
<dependency>
<groupId>javax.ejb</groupId>
<artifactId>javax.ejb-api</artifactId>
<version>3.2</version>
<scope>provided</scope>
</dependency>
<dependency>
<groupId>javax.servlet</groupId>
<artifactId>javax.servlet-api</artifactId>
<version>3.1.0</version>
</dependency>
<!-- JSF API & Impl -->
<dependency>
<groupId>com.sun.faces</groupId>
<artifactId>jsf-api</artifactId>
<version>2.2.11</version>
</dependency>
<dependency>
<groupId>com.sun.faces</groupId>
<artifactId>jsf-impl</artifactId>
<version>2.2.11</version>
</dependency>
<!-- https://mvnrepository.com/artifact/javax.enterprise/cdi-api -->
<dependency>
<groupId>javax.enterprise</groupId>
<artifactId>cdi-api</artifactId>
<version>2.0.SP1</version>
<scope>provided</scope>
</dependency>
<!-- primefaces https://mvnrepository.com/artifact/org.primefaces/primefaces -->
<dependency>
<groupId>org.primefaces</groupId>
<artifactId>primefaces</artifactId>
<version>7.0</version>
</dependency>
<!-- JSF utility library -> Omnifaces -->
<dependency>
<groupId>org.omnifaces</groupId>
<artifactId>omnifaces</artifactId>
<version>2.6</version>
</dependency>
<dependency>
<groupId>junit</groupId>
<artifactId>junit</artifactId>
<version>4.12</version>
<scope>test</scope>
<exclusions>
<exclusion>
<groupId>org.hamcrest</groupId>
<artifactId>hamcrest-core</artifactId>
</exclusion>
</exclusions>
</dependency>
<!-- This will get hamcrest-core automatically -->
<dependency>
<groupId>org.hamcrest</groupId>
<artifactId>hamcrest-library</artifactId>
<version>1.3</version>
<scope>test</scope>
</dependency>
<!-- Hibernate 5.3.5.Final -->
<dependency>
<groupId>org.hibernate</groupId>
<artifactId>hibernate-core</artifactId>
<version>5.3.5.Final</version>
<scope>provided</scope>
</dependency>
<dependency>
<groupId>mysql</groupId>
<artifactId>mysql-connector-java</artifactId>
<version>8.0.12</version>
</dependency>
<!-- jboss-client.jar -->
<dependency>
<groupId>org.wildfly</groupId>
<artifactId>wildfly-ejb-client-bom</artifactId>
<version>18.0.0.Final</version>
<type>pom</type>
</dependency>
</dependencies>
<reporting>
<plugins>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-project-info-reports-plugin</artifactId>
<version>2.6</version>
</plugin>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-checkstyle-plugin</artifactId>
<version>3.0.0</version>
<configuration>
<configLocation>checkstyle.xml</configLocation>
</configuration>
</plugin>
</plugins>
</reporting>
<build>
<finalName>cabsys</finalName>
<pluginManagement><!-- lock down plugins versions to avoid using Maven
defaults (may be moved to parent pom) -->
<plugins>
<plugin>
<artifactId>maven-clean-plugin</artifactId>
<version>3.1.0</version>
</plugin>
<!-- see http://maven.apache.org/ref/current/maven-core/default-bindings.html#Plugin_bindings_for_war_packaging -->
<plugin>
<artifactId>maven-resources-plugin</artifactId>
<version>3.1.0</version>
</plugin>
<plugin>
<artifactId>maven-surefire-plugin</artifactId>
<version>3.0.0-M3</version>
</plugin>
<plugin>
<artifactId>maven-war-plugin</artifactId>
<version>3.2.2</version>
</plugin>
<plugin>
<artifactId>maven-install-plugin</artifactId>
<version>3.0.0-M1</version>
</plugin>
<plugin>
<artifactId>maven-deploy-plugin</artifactId>
<version>3.0.0-M1</version>
</plugin>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-compiler-plugin</artifactId>
<version>3.8.1</version>
<configuration>
<source>1.8</source>
<target>1.8</target>
<annotationProcessorPaths>
<path>
<groupId>org.mapstruct</groupId>
<artifactId>mapstruct-processor</artifactId>
<version>${org.mapstruct.version}</version>
</path>
</annotationProcessorPaths>
</configuration>
</plugin>
</plugins>
</pluginManagement>
</build>
</project>
关于如何关闭 Dozer 日志消息的任何建议?谢谢。
最佳答案
您可以使用 logger 来抑制来自包及其子包的日志。下 Loggers
元素,尝试添加以下配置 -
<Logger name="com.github.dozermapper" level="OFF" additivity="false">
<AppenderRef ref="STDOUT" />
<AppenderRef ref="FILE" />
</Logger>
关于logging - 如何关闭 log4j2 中的 Dozer 日志条目?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/64607194/
在C语言中,当有变量(假设都是int)i小于j时,我们可以用等式 i^=j^=i^=j 交换两个变量的值。例如,令int i = 3,j = 5;在计算 i^=j^=i^=j 之后,我有 i = 5,
我为以下问题编写了以下代码: 给定一个由 N 个正整数组成的序列 A,编写一个程序来查找满足 i > A[j]A[i](A[i] 的 A[j] 次方 > A[j] 的 A[i] 次方)。 我的代码通过
这个表达式是从左到右解析的吗?我试图解释解析的结果,但最后的结果是错误的。 int j=10, k=10; j+=j-=j*=j; //j=j+(j-=j*=j)=j+(j-j*j) k+=k*=
给定一个整数数组 A ,我试图找出在给定位置 j ,A[j] 从每个 i=0 到 i=j 在 A 中出现了多少次。我设计了一个如下所示的解决方案 map CF[400005]; for(int i=0
你能帮我算法吗: 给定 2 个相同大小的数组 a[]和 b[]具有大于或等于 1 的整数。 查找不相等的索引 i和 j ( i != j ) 使得值 -max(a[i]*b[i] + a[i] * b
每次用J的M.副词,性能显着下降。因为我怀疑艾弗森和许比我聪明得多,我一定是做错了什么。 考虑 Collatz conjecture .这里似乎有各种各样的内存机会,但不管我放在哪里M. ,性能太差了
假设一个包含各种类型的盒装矩阵: matrix =: ('abc';'defgh';23),:('foo';'bar';45) matrix +---+-----+--+|abc|defgh|23|+
是否有可能对于两个正整数 i 和 j,(-i)/j 不等于 -(i/j)?我不知道这是否可能......我认为这将是关于位的东西,或者 char 类型的溢出或其他东西,但我找不到它。有什么想法吗? 最
假设两个不同大小的数组: N0 =: i. 50 N1 =: i. 500 应该有一种方法可以获得唯一的对,只需将两者结合起来即可。我发现的“最简单”是: ]$R =: |:,"2 |: (,.N0)
我是 J 的新用户,我只是想知道 J 包中是否实现了三次样条插值方法? 最佳答案 我自己不熟悉,但是我确实安装了所有的包,所以 $ rg -l -i spline /usr/share/j/9.02
在 Q/kdb 中,您可以使用 ': 轻松修改动词,它代表每个优先级。它会将动词应用于一个元素及其之前的邻居。例如 =': 检查值对是否相等。在 J 中,您可以轻松折叠 /\ 但它是累积的,是否有成对
嗨,我有一个 4x4 双矩阵 A 1+2i 2-1i -3-2i -1+4i 3-1i -3+2i 1-3i -1-3i 4+3i 3+5i 1-2i -1-4i
刚刚发现 J 语言,我输入: 1+^o.*0j1 I expected the answer to be 0 ,但我得到了 0j1.22465e_16。虽然这非常接近于 0,但我想知道为什么 J 应该
这个问题在这里已经有了答案: With arrays, why is it the case that a[5] == 5[a]? (20 个答案) 关闭 3 年前。 我正在阅读“C++ 编程语言”
当第一行是 1, 1/2 , 1/3 ....这是支持该问题的图像。 是否存在比朴素的 O(n^2) 方法更有效的方法? 我在研究伯努利数时遇到了这个问题,然后在研究“Akiyama-Tanigawa
我写了一段Java代码,它在无限循环中运行。 下面是代码: public class TestProgram { public static void main(String[] args){
for (int i = n; i > 0; i /= 2) { for (int j = 0; j 0; i /= 2) 的第一个循环结果 O(log N) . 第二个循环for (int
如问题中所述,需要找到数组中 (i,j) 对的总数,使得 (1) **ia[j]** 其中 i 和 j 是数组的索引。没有空间限制。 我的问题是 1) Is there any approach w
for l in range(1,len(S)-1): for i in range(1,len(S)-l): j=i+l for X in N:
第二个for循环的复杂度是多少?会是n-i吗?根据我的理解,第一个 for 循环将执行 n 次,但第二个 for 循环中的索引设置为 i。 //where n is the number elemen
我是一名优秀的程序员,十分优秀!