diff --git a/core-java/src/main/java/com/baeldung/hextToAscii/HexToAscii.java b/core-java/src/main/java/com/baeldung/hexToAscii/HexToAscii.java similarity index 90% rename from core-java/src/main/java/com/baeldung/hextToAscii/HexToAscii.java rename to core-java/src/main/java/com/baeldung/hexToAscii/HexToAscii.java index 4c20215288..2a3c4b109e 100644 --- a/core-java/src/main/java/com/baeldung/hextToAscii/HexToAscii.java +++ b/core-java/src/main/java/com/baeldung/hexToAscii/HexToAscii.java @@ -1,10 +1,13 @@ package com.baeldung.hexToAscii; +import static org.junit.Assert.assertEquals; + +import org.junit.Test; + public class HexToAscii { @Test public static void whenHexToAscii() { - String asciiString = "http://www.baeldung.com/jackson-serialize-dates"; String hexEquivalent = "687474703a2f2f7777772e6261656c64756e672e636f6d2f6a61636b736f6e2d73657269616c697a652d6461746573"; @@ -13,15 +16,15 @@ public class HexToAscii { @Test public static void whenAsciiToHex() { - String asciiString = "http://www.baeldung.com/jackson-serialize-dates"; String hexEquivalent = "687474703a2f2f7777772e6261656c64756e672e636f6d2f6a61636b736f6e2d73657269616c697a652d6461746573"; assertEquals(hexEquivalent, asciiToHex(asciiString)); } - private static String asciiToHex(String asciiStr) { + // + private static String asciiToHex(String asciiStr) { char[] chars = asciiStr.toCharArray(); StringBuilder hex = new StringBuilder(); for (char ch : chars) { @@ -31,8 +34,7 @@ public class HexToAscii { return hex.toString(); } - private static String hexToASCII(String hexStr) { - + private static String hexToAscii(String hexStr) { StringBuilder output = new StringBuilder(""); for (int i = 0; i < hexStr.length(); i += 2) { String str = hexStr.substring(i, i + 2); @@ -40,4 +42,5 @@ public class HexToAscii { } return output.toString(); } + } diff --git a/spring-jpa/README.md b/spring-jpa/README.md index bc768bee22..30b39e1a4e 100644 --- a/spring-jpa/README.md +++ b/spring-jpa/README.md @@ -13,5 +13,12 @@ - [Hibernate Second-Level Cache](http://www.baeldung.com/hibernate-second-level-cache) - [Spring, Hibernate and a JNDI Datasource](http://www.baeldung.com/spring-persistence-jpa-jndi-datasource) -To ignore "No persistence xml file found in project", you do: -Project -> Properties -> Java Persistance -> JPA -> Error/Warnings -> Select Ignore on "No persistence xml file found in project" +### Eclipse Config +After importing the project into Eclipse, you may see the following error: +"No persistence xml file found in project" + +This can be ignored: +- Project -> Properties -> Java Persistance -> JPA -> Error/Warnings -> Select Ignore on "No persistence xml file found in project" +Or: +- Eclipse -> Preferences - Validation - disable the "Build" execution of the JPA Validator + diff --git a/spring-thymeleaf/README.md b/spring-thymeleaf/README.md index a8ca755044..98fb4b043b 100644 --- a/spring-thymeleaf/README.md +++ b/spring-thymeleaf/README.md @@ -2,15 +2,16 @@ ## Spring Thymeleaf Example Project - ### Relevant Articles: - [Introduction to Using Thymeleaf in Spring](http://www.baeldung.com/thymeleaf-in-spring-mvc) - [CSRF Protection with Spring MVC and Thymeleaf](http://www.baeldung.com/csrf-thymeleaf-with-spring-security) + ### Build the Project mvn clean install + ### Run the Project mvn cargo:run - **note**: starts on port '8082'