* Refactoring and Unit testing added based on Kevin Gilmore's advice of Sep 16, 2018 * Refactoring and Unit testing added based on Kevin Gilmore's advice of Sep 16, 2018 * Refactoring and Unit testing added based on Kevin Gilmore's advice of Sep 16, 2018 * Resolve merge conflict Added dependency for org.passay and for org.apache.commons * Create searching/WordIndexer.java * Create WordIndexerUnitTest.java * Updated in response to Kevin Gilmore's questions "What happens if the string ends with the word you're searching for? Would the next iteration of the loop cause an error if index + wordLength is greater than the last position of the string? Be sure to test this scenario." * Updated WordIndexer in response to Kevin Gilmore Generally speaking, it's good practice to declare return types, parameters, variables using an interface rather than an implementation, if the interface is sufficient to satisfy the need. In this case, there's no reason you can't simply return a List of Integer. (Excellent point, fixed) The two methods are identical. Isn't the first one supposed to be the naive approach? (It was a copy and paste error, fixed) * saving changes... * Update java-strings/src/main/java/com/baeldung/string/searching/WordIndexer.java Co-Authored-By: codewarrior2000 <lpc34@columbia.edu> * Update java-strings/src/main/java/com/baeldung/string/searching/WordIndexer.java Co-Authored-By: codewarrior2000 <lpc34@columbia.edu> * Update java-strings/src/test/java/com/baeldung/string/searching/WordIndexerUnitTest.java Co-Authored-By: codewarrior2000 <lpc34@columbia.edu> * Respond to Kevin Gilmore's code changes * Debugging code change to JUnit
The "REST with Spring" Classes
Here's the Master Class of REST With Spring (along with the newly announced Boot 2 material):
>> THE REST WITH SPRING - MASTER CLASS
And here's the Master Class of Learn Spring Security:
>> LEARN SPRING SECURITY - MASTER CLASS
Java and Spring Tutorials
This project is a collection of small and focused tutorials - each covering a single and well defined area of development in the Java ecosystem.
A strong focus of these is, of course, the Spring Framework - Spring, Spring Boot and Spring Securiyt.
In additional to Spring, the following technologies are in focus: core Java
, Jackson
, HttpClient
, Guava
.
Building the project
To do the full build, do: mvn install -Pdefault -Dgib.enabled=false
Building a single module
To build a specific module run the command: mvn clean install -Dgib.enabled=false
in the module directory
Running a Spring Boot module
To run a Spring Boot module run the command: mvn spring-boot:run -Dgib.enabled=false
in the module directory