Go to file
Abhinav Pandey 282cd67ad4 BAEL-3201 - Unit testing with Redis test containers 2022-07-02 16:56:07 +05:30
akka-modules Java 11501 (#12409) 2022-06-26 21:15:33 +05:30
algorithms-modules
annotations
antlr
apache-cxf-modules Update README.md 2022-06-07 16:47:23 +08:00
apache-httpclient
apache-httpclient-2
apache-kafka
apache-libraries
apache-olingo
apache-poi
apache-poi-2
apache-rocketmq
apache-shiro
apache-spark
apache-tapestry
apache-thrift
apache-tika
apache-tomcat
apache-velocity
asciidoctor
asm
atomikos
atomix
aws-modules
axon JAVA-12393 Upgraded to use axon-bom.version 2022-06-07 20:28:00 +05:30
azure
bazel
blade
bootique
cas JAVA-11241 Added missing pom.xml for container modules and other cleanup 2022-06-14 22:47:10 +05:30
cdi
checker-plugin
clojure/ring
cloud-foundry-uaa
code-generation
core-groovy-modules
core-java-modules Merge pull request #12427 from tudormarc/tudormarc-even-odd-negative-numbers 2022-06-30 13:26:34 +03:00
couchbase
custom-pmd
dagger
data-structures
ddd
ddd-contexts
deeplearning4j
discord4j
disruptor
docker-modules Update README.md 2022-07-01 18:38:24 +03:00
dozer
drools
dropwizard
dubbo
ethereum
feign
flyway-cdi-extension
geotools
google-cloud
google-web-toolkit
gradle Merge pull request #12401 from hkhan/JAVA-12746-fix-gradle-to-maven-module 2022-06-23 21:20:28 +02:00
gradle-5
gradle-6
grails
graphql-modules
grpc
guava-modules
guest
guice
hazelcast
helidon
httpclient-simple
hystrix
image-processing
intelliJ
jackson-modules JAVA-12710 Look into XML Serialization and Deserialization with Jackson article 2022-06-23 21:06:31 +05:30
jackson-simple
jakarta-ee
java-blockchain
java-ee-8-security-api
java-jdi
java-lite
java-native
java-rmi
java-spi
java-vavr-stream
java-websocket
javafx
javax-servlets
javax-servlets-2 Updated README.md 2022-06-06 11:45:42 +05:00
javax-sound
javaxval
jaxb
jbang
jee-7
jee-7-security
jenkins
jersey
jgit
jgroups
jhipster-5
jhipster-modules JAVA-12422 Renamed jhipster to jhipster-modules 2022-06-07 21:08:01 +05:30
jib
jjwt
jmeter
jmh
jooby
jsf
json-modules Java 11497 (#12410) 2022-06-26 21:16:19 +05:30
jsoup
jws
kaniko
ksqldb
kubernetes
lagom
language-interop
libraries
libraries-2
libraries-3
libraries-4
libraries-5 Java 4493 (#12393) 2022-06-22 20:58:56 +05:30
libraries-6
libraries-apache-commons
libraries-apache-commons-collections
libraries-apache-commons-io
libraries-concurrency
libraries-data
libraries-data-2
libraries-data-db
libraries-data-io [JAVA-12620] Add missing csv file 2022-06-17 11:13:18 +01:00
libraries-http
libraries-http-2
libraries-io
libraries-primitive
libraries-rpc
libraries-security
libraries-server
libraries-server-2
libraries-testing
lightrun
linkrest
linux-bash
logging-modules
lombok-modules Updated README.md 2022-06-30 16:11:40 +05:00
lucene
mapstruct
maven-modules Updated README.md 2022-06-14 10:21:02 +05:00
mesos-marathon
metrics
micronaut
microprofile
msf4j
muleesb
mustache
mybatis
netflix-modules
netty
nginx-forward-proxy
ninja
oauth2-framework-impl
open-liberty
optaplanner
orika
osgi
parent-boot-1
parent-boot-2
parent-java
parent-spring-4
parent-spring-5
patterns
pdf
performance-tests
persistence-modules Updated README.md 2022-06-27 15:04:15 +05:00
play-framework
pmd
podman
protobuffer
quarkus-modules JAVA-11500 : move quarkus related modules into quarkus-modules folder (#12419) 2022-06-29 20:12:01 +05:30
rabbitmq
raml
ratpack
reactive-systems
reactor-core Updated README.md 2022-06-21 14:42:24 +05:00
resteasy
restx
rsocket
rule-engines
rxjava-modules JAVA-11499 Minor cleanup (#12376) 2022-06-18 21:34:07 +05:30
saas
slack
software-security/sql-injection-samples
spark-java
spf4j
spring-4
spring-5 JAVA-12184 removed ExampleManual*Test and *ParallelManualTest (#12314) 2022-06-07 22:47:55 +05:30
spring-5-reactive-modules Update README.md (#12389) 2022-06-20 17:46:21 +05:30
spring-5-webflux
spring-5-webflux-2
spring-activiti
spring-amqp
spring-aop
spring-aop-2
spring-apache-camel
spring-batch
spring-batch-2
spring-bom
spring-boot-modules BAEL-3201 - Unit testing with Redis test containers 2022-07-02 16:56:07 +05:30
spring-boot-rest
spring-caching
spring-caching-2
spring-cloud-modules Merge pull request #12400 from eugenp/lor6-patch-3 2022-06-30 16:53:01 +03:00
spring-core
spring-core-2
spring-core-3
spring-core-4
spring-core-5
spring-cucumber
spring-di
spring-di-2
spring-di-3 BAEL-5451 Code for the Finding All Beans with a Custom Annotation article (#12143) 2022-06-10 17:29:16 +02:00
spring-drools
spring-ejb-modules JAVA-12424 Reverted unnecessary change in ejb-beans 2022-06-08 14:28:41 +05:30
spring-exceptions
spring-freemarker
spring-integration
spring-jenkins-pipeline
spring-jersey
spring-jinq
spring-jms
spring-kafka [JAVA-12591] Fix Kafka integration test 2022-06-10 12:20:36 +01:00
spring-katharsis
spring-mobile
spring-mockito
spring-native
spring-protobuf
spring-quartz
spring-reactor
spring-remoting-modules JAVA-12579 Renamed spring-remoting to spring-remoting-modules 2022-06-07 21:17:55 +05:30
spring-roo
spring-scheduling
spring-security-modules JAVA-12731: Modify parent pom files 2022-06-30 22:14:38 +05:30
spring-shell
spring-soap
spring-spel
spring-state-machine
spring-static-resources
spring-swagger-codegen
spring-threads
spring-vault Remove railing whitespaces 2022-06-15 19:41:18 +02:00
spring-vertx
spring-web-modules JAVA-12731: Modify parent pom files 2022-06-30 22:14:38 +05:30
spring-webflux-amqp
spring-websockets
static-analysis
stripe
struts-2
tensorflow-java
terraform
testing-modules Merge pull request #12292 from eugenp/lor6-patch-2 2022-06-30 16:53:13 +03:00
twilio
twitter4j
undertow JAVA-10433: Verify undertow module 2022-06-20 12:07:41 +05:30
vaadin
vavr
vavr-2
vertx
vertx-and-rxjava
video-tutorials
vraptor
webrtc
wicket
wildfly
xml
xml-2
xstream
.gitignore
LICENSE
README.md
baeldung-pmd-rules.xml
custom-pmd-0.0.1.jar
logback-config.xml
pom.xml BAEL-5557 Split a stream into parts (#12238) 2022-06-30 10:26:34 +01:00

README.md

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 addition to Spring, the modules here cover a number of aspects of Java.

Profile based segregation

We are using maven build profiles to segregate the huge list of individual projects we have in our repository.

As for now, vast majority of the modules require JDK8 to build and run correctly.

The projects are broadly divided into 3 lists: first, second and heavy.

Next, they are segregated further on the basis of the tests that we want to execute.

Additionally, there are 2 profiles dedicated for JDK9 and above builds.

Therefore, we have a total of 8 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
default-jdk9-and-above JDK9 and above projects *UnitTest
integration-jdk9-and-above JDK9 and above 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

Analogously, for the JDK9 and above projects the commands are:

mvn clean install -Pdefault-jdk9-and-above

and

mvn clean install -Pintegration-jdk9-and-above

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 or

mvn clean install -Pintegration-jdk9-and-above

depending on the list where our module exists