commit 2347e8b21b0d33391e9cb4e79e146756cadfe322 Author: ashleyfrieze <ashley@incredible.org.uk> Date: Tue Apr 27 21:40:33 2021 +0100 Minor tweak to pom commit 0497a9e3e88e9000d335976f311b5e8c1e10675b Merge: a7cf36704b 35cc00b59a Author: Daniel Strmecki <daniel.strmecki@gmail.com> Date: Mon Apr 26 20:27:13 2021 +0200 Merge branch 'master' into feature/BAEL-4502-compile-time-const commit a7cf36704bbf94a0afa5a9f46969f8e9774ca683 Author: Daniel Strmecki <daniel.strmecki@gmail.com> Date: Mon Apr 26 20:25:47 2021 +0200 BASE-4502: Update POM commit 86bfe45c4850c31d1505f4bb7a638a3f06621062 Author: Daniel Strmecki <daniel.strmecki@gmail.com> Date: Sun Apr 25 20:32:35 2021 +0200 BASE-4502: Revert POM changes and comment out JDK9+ code commit b538d1cc19c54c0b9ad9022b94fd066603836e26 Author: Daniel Strmecki <daniel.strmecki@gmail.com> Date: Sun Apr 25 16:42:47 2021 +0200 BASE-4502: Change parent commit f608783de5f5ee3eda6f2da25d10598327c5aa0f Author: Daniel Strmecki <daniel.strmecki@gmail.com> Date: Sun Apr 25 16:38:00 2021 +0200 BASE-4502: Maven compiler version commit f15f2b84478b45a7740d78316bec9c253235adf6 Author: Daniel Strmecki <daniel.strmecki@gmail.com> Date: Sun Apr 25 16:13:05 2021 +0200 BASE-4502: Compile to Java 11 commit 79e780667ca2745198a13b227984e691e4575955 Author: Daniel Strmecki <daniel.strmecki@gmail.com> Date: Sat Apr 24 08:53:53 2021 +0200 BASE-4502: wrong case commit fca2515c41f653ca735af73e659fb2735b455ce2 Author: Daniel Strmecki <daniel.strmecki@gmail.com> Date: Sat Apr 10 11:32:59 2021 +0200 BASE-4502: Add space commit 0407a1e40980763f13be598224df5403a12fb8c1 Merge: 54f11d5f05 5621594056 Author: Daniel Strmecki <daniel.strmecki@gmail.com> Date: Sat Apr 10 11:24:57 2021 +0200 Merge remote-tracking branch 'origin/feature/BAEL-4502-compile-time-const' into feature/BAEL-4502-compile-time-const # Conflicts: # core-java-modules/core-java-lang-4/src/main/java/com/baeldung/compiletimeconstants/ClassConstants.java # core-java-modules/core-java-lang-4/src/main/java/com/baeldung/compiletimeconstants/CompileTimeVariables.java commit 54f11d5f05aef35b9835ea1e2689be0f6e4bcd82 Author: Daniel Strmecki <daniel.strmecki@gmail.com> Date: Sat Apr 10 11:23:12 2021 +0200 BASE-4502: PR comments and annotation example commit 5621594056bc97f7b2ab7a70e5cf1abcc8ef35a4 Author: daniel.strmecki <daniel.strmecki@ecx.io> Date: Sun Apr 4 12:43:17 2021 +0200 BAEL-4502: Remove unused examples commit b11077e79bf92bcfd6748361e7eb66bcfb20ab06 Author: Daniel Strmecki <daniel.strmecki@gmail.com> Date: Sat Apr 3 11:14:29 2021 +0200 BASE-4502: Update examples commit 9fea197cd6b5f471bcda4331b722ae308e30b507 Merge: f6e1f2fc46 b7cbb5428d Author: Daniel Strmecki <daniel.strmecki@gmail.com> Date: Sun Mar 28 17:41:46 2021 +0200 Merge branch 'master' into feature/BAEL-4502-compile-time-const commit f6e1f2fc467949f66eba441bb98f75f8d69c09b8 Author: Daniel Strmecki <daniel.strmecki@gmail.com> Date: Sun Mar 28 17:40:31 2021 +0200 BASE-4502: Compile time examples
The Courses
Here's the new "Learn Spring" course:
>> LEARN SPRING - THE MASTER CLASS
Here's the Master Class of "REST With Spring" (along with the new 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 Security. In additional to Spring, the modules here are covering a number of aspects in Java.
Profile based segregation
We are using maven build profiles to segregate the huge list of individual projects we have in our repository.
The projects are broadly divided into 3 list: first, second and heavy.
Next, they are segregated further on the basis of tests that we want to execute.
Therefore, we have a total of 6 profiles:
Profile | Includes | Type of test enabled |
---|---|---|
default-first | First set of projects | *UnitTest |
integration-lite-first | First set of projects | *IntegrationTest |
default-second | Second set of projects | *UnitTest |
integration-lite-second | Second set of projects | *IntegrationTest |
default-heavy | Heavy/long running projects | *UnitTest |
integration-heavy | Heavy/long running projects | *IntegrationTest |
Building the project
Though it should not be needed often to build the entire repository at once because we are usually concerned with a specific module.
But if we want to, we can invoke the below command from the root of the repository if we want to build the entire repository with only Unit Tests enabled:
mvn clean install -Pdefault-first,default-second,default-heavy
or if we want to build the entire repository with Integration Tests enabled, we can do:
mvn clean install -Pintegration-lite-first,integration-lite-second,integration-heavy
Building a single module
To build a specific module run the command: mvn clean install
in the module directory
Running a Spring Boot module
To run a Spring Boot module run the command: mvn spring-boot:run
in the module directory
Working with the IDE
This repo contains a large number of modules. When you're working with an individual module, there's no need to import all of them (or build all of them) - you can simply import that particular module in either Eclipse or IntelliJ.
Running Tests
The command mvn clean install
from within a module will run the unit tests in that module.
For Spring modules this will also run the SpringContextTest
if present.
To run the integration tests, use the command:
mvn clean install -Pintegration-lite-first
or
mvn clean install -Pintegration-lite-second
or
mvn clean install -Pintegration-heavy
depending on the list where our module exists