Trixi-Turny f542a4afab Bael 4457 list of json objects with rest template (#10058)
* Add users.json

* BAEL-4457 demo app with Object array and ParameterizedTypeReference example

* BAEL-4457 write unit tests

* BAEL-4456 remove new directory

* BAEL-4457 fix pom and testname

* BAEL-4457 use default target release

* BAEL-4457 add more examples of processing the objects and address comments

* BAEL-4457 remove new ArrayList and put @ResponseBody before public

* BAEL-4457 use static userJson object

* BAEL-4456 tidy up extra spaces

* BAEL-4457 removed too many brackets

* BAEL-4457 remove incorrect assertion

* BAEL-4457 use a service instead of another controller

* BAEL-4457 use ObjectMapper to extract usernames from objects

* BAEL-4457 fix UserController

* BAEL-4457 delete provider service and controller

* BAEL-4457 use functional interface where possible

* BAEL-4457 remove unnecessary annotations and tidy indents for exchange()

* BAEL-4457 use @JsonCreator and @JsonProperty and resolve comments

* BAEL-4457 improve comment

* BAEL-4457 remove comments and use assertj core lib for assertions

* BAEL-4457 fix indents

Co-authored-by: Trixi Turny <writetotrixi@gmail.com>
2020-12-18 09:11:27 +00:00
2020-03-15 18:22:24 +05:30
2020-03-15 18:22:24 +05:30
2020-10-28 15:41:23 +08:00
2020-10-28 17:18:55 +08:00
2020-10-28 16:54:34 +08:00
2020-03-15 18:22:24 +05:30
2020-03-15 18:22:24 +05:30
2020-03-15 18:22:24 +05:30
2020-08-11 19:11:30 +08:00
2020-09-19 13:51:05 +02:00
2020-04-07 17:48:34 +08:00
2020-08-20 13:10:04 +08:00
2020-03-15 18:22:24 +05:30
2020-07-23 21:36:52 +08:00
2020-10-21 11:31:57 +08:00
2020-03-15 18:22:24 +05:30
2020-03-15 18:22:24 +05:30
2020-03-15 18:22:24 +05:30
2020-03-15 18:22:24 +05:30
2020-03-15 18:22:24 +05:30
2020-03-15 18:22:24 +05:30
2020-07-07 14:18:10 +03:00
2020-03-15 18:22:24 +05:30
2020-03-15 18:22:24 +05:30
2020-06-21 20:49:45 -03:00
2020-03-15 18:22:24 +05:30
2020-03-15 18:22:24 +05:30
2020-05-05 08:47:17 +08:00
2020-03-15 18:22:24 +05:30
2020-03-15 18:22:24 +05:30
2020-03-15 18:22:24 +05:30
2020-07-07 14:18:10 +03:00
2020-03-15 18:22:24 +05:30
2020-07-21 21:52:46 +08:00
2020-07-07 14:18:10 +03:00
2020-03-15 18:22:24 +05:30
2020-09-24 02:53:02 +08:00
2020-12-16 17:41:24 +08:00
2020-03-22 07:24:38 +05:30
2020-03-22 07:24:38 +05:30
2020-03-22 07:24:38 +05:30
2020-07-21 21:44:57 +08:00
2020-08-20 17:23:09 +08:00
2020-03-22 07:24:38 +05:30
2020-12-09 18:13:04 +08:00
2020-03-22 07:24:38 +05:30
2020-03-22 07:24:38 +05:30
2020-03-22 07:24:38 +05:30
2020-03-22 07:24:38 +05:30
2020-03-22 07:24:38 +05:30
2020-03-22 07:24:38 +05:30
2020-03-22 07:24:38 +05:30
2020-11-05 14:07:07 +08:00
2020-09-16 23:55:27 +08:00
2020-03-18 13:24:46 +08:00
2020-03-22 07:24:38 +05:30
2020-03-22 07:24:38 +05:30
2020-01-16 01:53:26 +05:30
2020-03-22 07:24:38 +05:30
2020-12-09 18:23:53 +08:00
2020-07-23 21:28:59 +08:00
2020-07-07 14:18:10 +03:00
2020-11-24 03:07:59 +08:00
2020-07-07 14:18:10 +03:00
2020-12-03 14:18:15 +02:00
2020-10-28 16:19:53 +08:00
2020-08-11 11:19:00 +08:00
2020-10-24 17:38:58 +03:00
2020-10-26 20:20:38 +05:30
2020-07-07 14:18:10 +03:00
2020-01-22 13:06:25 +08:00
2020-08-20 17:39:49 +08:00
2019-12-06 11:40:56 +02:00
2020-09-24 03:36:26 +08:00
2020-08-20 13:17:06 +08:00
2020-01-22 13:27:26 +08:00
2020-05-12 15:29:06 +08:00
2020-05-26 17:23:59 +05:30
2020-07-07 14:18:10 +03:00
2020-07-07 14:18:10 +03:00
2020-07-07 14:18:10 +03:00
2020-10-28 14:32:56 +08:00
2020-03-18 13:16:03 +08:00
2020-05-30 14:01:14 +08:00
2020-09-16 23:47:15 +08:00
2020-09-16 22:47:55 +08:00
2020-07-21 21:57:20 +08:00
2020-03-01 23:07:19 +01:00
2020-03-22 07:24:38 +05:30
2020-11-18 17:03:03 +08:00
2020-07-07 14:18:10 +03:00
2020-07-07 14:18:10 +03:00
2020-01-09 23:45:10 +08:00
2020-10-28 10:34:26 +08:00
2020-07-07 14:18:10 +03:00
2020-03-22 07:24:38 +05:30
2020-05-05 08:57:04 +08:00
2020-03-15 18:22:24 +05:30
2020-07-07 14:18:10 +03:00
2020-10-28 16:26:53 +08:00
2020-12-16 17:24:51 +08:00
2020-03-18 12:32:33 +08:00
2020-02-05 16:28:01 +08:00
2020-01-28 10:31:43 +05:30
2020-08-11 12:32:27 +08:00
2020-01-28 10:31:43 +05:30
2020-08-20 12:59:10 +08:00
2020-03-17 19:08:26 +08:00
2020-02-10 13:25:34 +08:00
2020-11-25 11:52:43 +02:00
2020-10-28 16:35:26 +08:00
2020-10-26 16:28:28 +02:00
2020-09-16 22:44:58 +08:00
2020-03-18 12:18:27 +08:00
2020-07-21 21:26:52 +08:00
2020-12-09 18:15:40 +08:00
2020-07-21 21:14:45 +08:00
2020-01-10 08:49:50 +02:00
2020-10-21 11:05:24 +03:00
2020-08-02 03:51:32 +05:30
2020-11-28 17:51:32 +05:30
2020-07-07 14:18:10 +03:00
2020-07-07 14:18:10 +03:00
2020-09-28 20:32:37 -07:00
2020-07-07 14:18:10 +03:00
2020-07-07 14:18:10 +03:00
2020-12-02 19:28:40 +08:00
2020-03-24 15:05:36 +08:00
2020-09-16 23:44:29 +08:00
2020-09-16 22:46:47 +08:00
2020-07-21 20:53:15 +08:00
2020-03-18 12:08:48 +08:00
2020-12-02 19:19:21 +08:00
2020-08-20 18:40:15 +08:00
2020-05-06 22:43:04 +05:30
2020-07-07 14:18:10 +03:00
2020-05-12 16:34:14 +08:00
2020-12-02 19:14:12 +08:00
2020-07-07 14:18:10 +03:00
2020-10-03 16:25:03 +02:00
2020-04-19 16:55:18 +02:00
2020-07-07 14:18:10 +03:00
2020-03-15 18:22:24 +05:30
2020-03-15 18:22:24 +05:30
2020-03-15 18:22:24 +05:30
2020-03-15 18:22:24 +05:30
2020-10-31 12:07:35 +02:00

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

Description
No description provided
Readme MIT 267 MiB
Languages
Java 88%
HTML 3.6%
JavaScript 2.7%
TypeScript 2.4%
CSS 1.5%
Other 1%