xml 项目添加 #45
1
.idea/compiler.xml
generated
1
.idea/compiler.xml
generated
@ -40,6 +40,7 @@
|
||||
<module name="image-processing" />
|
||||
<module name="jackson-jr" />
|
||||
<module name="spring-data-redis" />
|
||||
<module name="xml-2" />
|
||||
<module name="core-java" />
|
||||
<module name="jackson-custom-conversions" />
|
||||
<module name="core-java-collections-list-2" />
|
||||
|
2
.idea/encodings.xml
generated
2
.idea/encodings.xml
generated
@ -114,6 +114,8 @@
|
||||
<file url="file://$PROJECT_DIR$/toolkits/codebank/src/main/resources" charset="UTF-8" />
|
||||
<file url="file://$PROJECT_DIR$/toolkits/discourse/src/main/java" charset="UTF-8" />
|
||||
<file url="file://$PROJECT_DIR$/toolkits/discourse/src/main/resources" charset="UTF-8" />
|
||||
<file url="file://$PROJECT_DIR$/xml-2/src/main/java" charset="UTF-8" />
|
||||
<file url="file://$PROJECT_DIR$/xml-2/src/main/resources" charset="UTF-8" />
|
||||
<file url="file://$PROJECT_DIR$/xml/src/main/java" charset="UTF-8" />
|
||||
<file url="file://$PROJECT_DIR$/xml/src/main/resources" charset="UTF-8" />
|
||||
</component>
|
||||
|
@ -76,7 +76,7 @@
|
||||
<dependency> <!-- needed to bridge to slf4j for projects that use the log4j APIs directly -->
|
||||
<groupId>org.slf4j</groupId>
|
||||
<artifactId>log4j-over-slf4j</artifactId>
|
||||
<version>${version.slf4j}</version>
|
||||
<version>${slf4j.version}</version>
|
||||
</dependency>
|
||||
<dependency>
|
||||
<groupId>org.projectlombok</groupId>
|
||||
|
@ -7,6 +7,7 @@ import static org.junit.Assert.assertNotNull;
|
||||
import static org.junit.Assert.assertThat;
|
||||
|
||||
import java.io.File;
|
||||
import java.net.URI;
|
||||
import java.net.URL;
|
||||
import java.util.List;
|
||||
import java.util.Map;
|
||||
@ -103,7 +104,7 @@ public class JavaReadWriteJsonExampleUnitTest {
|
||||
|
||||
@Test
|
||||
public void wheReadFromUrl_thanCorrect() throws Exception {
|
||||
URL resource = new URL("file:src/test/resources/json_car.json");
|
||||
URL resource = new URI("file:src/test/resources/json_car.json").toURL();
|
||||
|
||||
ObjectMapper objectMapper = new ObjectMapper();
|
||||
Car fromFile = objectMapper.readValue(resource, Car.class);
|
||||
|
@ -6,6 +6,10 @@
|
||||
<artifactId>jackson-conversions</artifactId>
|
||||
<version>0.0.1-SNAPSHOT</version>
|
||||
<name>jackson-conversions</name>
|
||||
<properties>
|
||||
<maven.compiler.source>17</maven.compiler.source>
|
||||
<maven.compiler.target>17</maven.compiler.target>
|
||||
</properties>
|
||||
|
||||
<parent>
|
||||
<groupId>com.ossez</groupId>
|
||||
|
@ -34,7 +34,7 @@
|
||||
<dependency>
|
||||
<groupId>org.slf4j</groupId>
|
||||
<artifactId>slf4j-simple</artifactId>
|
||||
<version>${version.slf4j}</version>
|
||||
<version>${slf4j.version}</version>
|
||||
</dependency>
|
||||
</dependencies>
|
||||
|
||||
|
11
pom.xml
11
pom.xml
@ -55,6 +55,7 @@
|
||||
<module>testing-modules</module>
|
||||
<module>toolkits</module>
|
||||
<module>xml</module>
|
||||
<module>xml-2</module>
|
||||
</modules>
|
||||
|
||||
<properties>
|
||||
@ -64,7 +65,7 @@
|
||||
<project.reporting.outputEncoding>UTF-8</project.reporting.outputEncoding>
|
||||
|
||||
<!-- Logging -->
|
||||
<version.slf4j>1.7.36</version.slf4j>
|
||||
<slf4j.version>1.7.36</slf4j.version>
|
||||
<log4j.version>1.2.17</log4j.version>
|
||||
<log4j-over-slf4j.version>2.0.7</log4j-over-slf4j.version>
|
||||
<version.log4j2>2.18.0</version.log4j2>
|
||||
@ -133,6 +134,8 @@
|
||||
<maven-compiler-plugin.version>3.13.0</maven-compiler-plugin.version>
|
||||
<maven-javadoc-plugin.version>3.6.3</maven-javadoc-plugin.version>
|
||||
<maven-war-plugin.version>3.4.0</maven-war-plugin.version>
|
||||
<maven.compiler.source>17</maven.compiler.source>
|
||||
<maven.compiler.target>17</maven.compiler.target>
|
||||
|
||||
</properties>
|
||||
|
||||
@ -141,6 +144,12 @@
|
||||
<!-- OSSEZ COMMON -->
|
||||
|
||||
<!-- LOG -->
|
||||
<dependency>
|
||||
<groupId>org.slf4j</groupId>
|
||||
<artifactId>slf4j-api</artifactId>
|
||||
<version>${slf4j.version}</version>
|
||||
</dependency>
|
||||
|
||||
<dependency>
|
||||
<groupId>ch.qos.logback</groupId>
|
||||
<artifactId>logback-classic</artifactId>
|
||||
|
@ -8,9 +8,9 @@
|
||||
<name>xml-2</name>
|
||||
|
||||
<parent>
|
||||
<groupId>com.baeldung</groupId>
|
||||
<groupId>com.ossez</groupId>
|
||||
<artifactId>parent-modules</artifactId>
|
||||
<version>1.0.0-SNAPSHOT</version>
|
||||
<version>0.0.2-SNAPSHOT</version>
|
||||
</parent>
|
||||
|
||||
<dependencies>
|
||||
|
Loading…
x
Reference in New Issue
Block a user