Commit Graph

9583 Commits

Author SHA1 Message Date
Sameer 9528c51654 Articles/bael 4903 (#12572)
* conditional dependency demo

* added Gradle 7 submodule

Co-authored-by: s9m33r <no-reply>
2022-08-08 13:08:34 +02:00
Muhammad Abdullah Azam Khan ef0b7ea20c Update KafkaApplication.java (#12424)
* Update KafkaApplication.java

Added partition offset to the listener so that it can start consuming the messages from the beginning of the topic.

* Revert "Update KafkaApplication.java"

This reverts commit 28801f85174af8bf2d2bb89e1fb39b52c49a6cf0.

* Counting Messages

1. Counting messages from Producer offset
2. Counting messages from Consumer
3. Rest APIs to view the count

* Refactoring

* Adding 3rd programmatic method to count number of messages in Kafka topic

* Removing irrelevant code

* Server port removed
2022-08-08 09:33:20 +05:30
Dhawal Kapil 2db5fcea1e JAVA-13416 Converting to *LiveTest as it makes live call to httpbin URLs (#12573) 2022-08-06 23:56:44 +05:30
hesamghiasi ba99476330 fixing time ago unit tests (#12560)
* adding getCurrentTime method to TimeAgoCalculatorUnitTest in order to always return the same time and avoid problems related to reading date from local system.
adding two methods to TimeAgoCalculator to always return the same date as the current date in order to avoid problems related to reading current time from local host. One of these two methods accepts time zone

* adding getCurrentTime method to TimeAgoCalculatorUnitTest in order to always return the same time and avoid problems related to reading date from local system.
adding two methods to TimeAgoCalculator to always return the same date as the current date in order to avoid problems related to reading current time from local host. One of these two methods accepts time zone
correcting some formattings
adding comments in code to clarify adding of getCurrentTime methods

* reverting changes to ZuulConfig
2022-08-06 19:08:59 +05:30
Loredana Crusoveanu 2a27f6e4f3 Merge pull request #12569 from panos-kakos/JAVA-13838
[JAVA-13838] Updated jackson dependency in main pom.xml
2022-08-06 16:29:26 +03:00
anuragkumawat eb91f373ce JAVA-13606 Remove mention of Mockito 2 as a separate library (#12571) 2022-08-06 18:35:30 +05:30
panagiotiskakos 4dd55bc517 [JAVA-13838] 2022-08-06 10:30:03 +03:00
Dhawal Kapil 717e3fafdb JAVA-13629 More fixes and updates (#12566) 2022-08-05 01:19:05 +05:30
Dhawal Kapil 0dc36fdb43 BAEL-5230 Added code and test for Fauna IoT application article (#12554)
* BAEL-5230 Added code and test for Fauna IoT application article

* BAEL-5230 Removed secrets from the codebase

* BAEL-5230 Removed spring-boot-configuration-processor
2022-08-04 21:29:43 +02:00
ACHRAF TAITAI d24f73002a Load Image With Spring Boot and Thymeleaf (#12486)
* Load Image With Spring Boot and Thymeleaf

* Load Image With Spring Boot and Thymeleaf
2022-08-04 10:49:11 +02:00
Adrian Bob 81b05fb3ac BAEL-5638: Added display logged-in user details in Thymeleaf tutorial (#12524)
* BAEL-5638: Added display logged-in user details in Thymeleaf tutorial

* BAEL-5638: Removed unneeded security config
2022-08-04 09:24:49 +05:30
Kai Yuan 8ec8c01a67 Arrays.asList() vs Collections.singletonList() (#12552) 2022-08-03 21:38:13 -05:00
thibault.faure e5e320c1f7 BAEL-3644 improvement to the performance of java mapping framework article 2022-08-04 00:11:05 +02:00
Loredana Crusoveanu 82603cfaf4 Merge pull request #12431 from samdalvai/fix-cassandra-naming
Fix naming of parameters in documentation
2022-08-03 21:31:14 +03:00
sdhiray7 a6ef4b67d1 BAEL-5608 - Get current stack trace java (#12533)
* Initial commit for Object copy in Java

* review comments commit for Object copy in Java

* Initial commit for parseInt vs valueOf java

* Review comments commit for parseInt vs valueOf java

* Modify readme

* review comments

* build failure

* build failure retry

* build failure retry remove parseInt(java.lang.String,int,int,int)

* build failure add comment

* change examples

* review comments

* review comments 2

* review comments 3

* Initial commit for get current stacktrace

* Remove old files

* Name updates

* Jenkins error

* changes to file name

* Review comments
2022-08-02 19:36:48 -05:00
Eugene Kovko 614795051e BAEL-5682 - Atomic vs Volatile (#12528)
Co-authored-by: eugene.kovko <eugene.kovko@tensquaregames.com>
2022-08-01 20:16:24 -05:00
davidmartinezbarua b58a7a7c12 Merge pull request #12543 from thibaultfaure/articles/BAEL-5664-using-env-variables-in-application-properties
Articles/bael 5664 using env variables in application properties
2022-08-01 12:59:13 -03:00
kwoyke f5e90c1bc6 Merge pull request #12545 from freelansam/JAVA-12729
JAVA-12729: rename jackson module
2022-07-31 22:25:37 +02:00
kwoyke 75db30f1c1 Merge pull request #12538 from dkapil/task/JAVA-13629
Task/java 13629
2022-07-31 22:15:33 +02:00
kwoyke e07dba99a3 Merge pull request #12536 from dkapil/task/JAVA-13628
Task/java 13628
2022-07-31 22:13:25 +02:00
kwoyke 6356579778 Merge pull request #12555 from dkapil/task/JAVA-13627_2
JAVA-13627 Updated code to use assertThatThrownBy instead of assertTh…
2022-07-31 22:12:24 +02:00
kwoyke a07425cc49 Merge pull request #12549 from anuragkumawat/JAVA-13614
JAVA-13614 Look into How to Read HTTP Headers in Spring REST Controllers article
2022-07-31 21:57:54 +02:00
Dhawal Kapil 57aa81d552 JAVA-13630 Updated code for Mockito - Using Spies Article 2022-07-31 23:26:36 +05:30
Dhawal Kapil 25c755bb68 JAVA-13630 Updated code for Mockito - Using Spies Article 2022-07-31 23:23:37 +05:30
Dhawal Kapil d93e6d3bc0 BAEL-5230 Removed secrets from the codebase 2022-07-31 22:07:20 +05:30
Dhawal Kapil 3229bf87b3 Merge branch 'master' of https://github.com/eugenp/tutorials into task/JAVA-13628 2022-07-31 22:01:33 +05:30
Dhawal Kapil 17d2d5a999 Merge branch 'master' of https://github.com/eugenp/tutorials into task/JAVA-13629 2022-07-31 22:00:29 +05:30
Dhawal Kapil 53629eeb0b JAVA-13627 Updated code to use assertThatThrownBy instead of assertThrows 2022-07-31 21:57:45 +05:30
thibault.faure ac46a47524 BAEL-5664 code for the using environment varibales in application.properties article 2022-07-31 18:02:05 +02:00
Dhawal Kapil 0b81bf5e45 BAEL-5230 Added code and test for Fauna IoT application article 2022-07-31 18:10:51 +05:30
Loredana Crusoveanu 8db0d7b277 Merge pull request #12548 from Asjad-J/master
Updated links titles
2022-07-31 15:27:12 +03:00
lucaCambi77 0ec6a036ba Spring Security: Upgrading the deprecated WebSecurityConfigurerAdapter (#12540)
* add SecurityFilterChain application in spring security web boot 4

* pmd violation

* fix: pom description

* remove unused code, format

* make tests grouped logically

* add missing case for user role

* rename package to lower case
2022-07-30 21:43:09 -05:00
Matei Cernăianu 858e158680 BAEL-5651: How to check if an integer is in a given range? (#12470)
* BAEL-5651: How to check if an integer is in a given range?

* BAEL-5651: How to check if an integer is in a given range?
2022-07-30 19:18:52 -04:00
Thiago dos Santos Hora a313c855d3 [BAEL-5631] Quarkus vs Spring boot improvements (#12520)
* Initial impl

* Update framework versions testing from jm to wrk

* Add hyperfoil

* Add hyperfoil read me
2022-07-30 14:26:16 +02:00
ACHRAF TAITAI d0ba47e75d BAEL-5643 : Replace at Specific Index in Java ArrayList (#12539) 2022-07-30 14:22:59 +02:00
lalitrajput72 ef758acef0 [BAEL-5622] static vs instance initializer block (#12271)
* Deep copy vs Shallow copy Code commit

* Static and instance block

* Deep copy branch chanaged from master to other

* static vs instance block

* Update InstanceBlockExample.java

* Update StaticBlockExample.java

Co-authored-by: Lalit Rajput <lalit.rajput@globallogic.com>
Co-authored-by: paritoshsunny <sams.sunny.16@gmail.com>
2022-07-30 12:39:02 +02:00
kwoyke e9fdf78b77 Merge pull request #12547 from thibaultfaure/BAEL-842/fix-integrations-tests
Fix failed integration tests
2022-07-30 09:52:49 +02:00
anuragkumawat 7602a36fae JAVA-13614 Look into How to Read HTTP Headers in Spring REST Controllers article 2022-07-30 12:12:16 +05:30
Asjad J 065846c376 Updated README.md
Updated title from 'Hibernate's “Detached Entity Passed to Persist” Error' to 'Hibernate’s “Detached Entity Passed to Persist” Error'
2022-07-30 06:46:34 +05:00
Asjad J be5e772318 Updated README.md
Updated link title in README from 'Sealed Classes and Interfaces in Java 17' to 'Sealed Classes and Interfaces in Java'
2022-07-30 06:34:42 +05:00
Asjad J 300d9408f6 Updated README.md
Updated link title in README from 'Guide to QuarkusIO' to 'Guide to Quarkus'
2022-07-30 06:26:40 +05:00
thibault.faure 067cddb33e Fix failed integration tests 2022-07-29 21:45:18 +02:00
sampadawagde 5c8d615fdb JAVA-12729: rename jackson module 2022-07-29 19:32:11 +05:30
anuragkumawat e97b4c899a JAVA-10376 Code Mismatch | Exploring the Spring 5 WebFlux URL Matching (#12509)
* JAVA-10376 Code Mismatch | Exploring the Spring 5 WebFlux URL Matching

* JAVA-10376 Code Mismatch | Exploring the Spring 5 WebFlux URL Matching
2022-07-29 19:14:40 +05:30
Elçim Duran 67c9cfec23 Bael-5645 - Scanning Java Annotations at Runtime (#12527)
* BAEL-5645 - Annotation scanners using Spring context, Spring core, reflections, java reflection, and Jandex libraries are implemented

* BAEL-5645 - Library versions are incremented in pom.xml

* BAEL-5645 - Some refactoring and indentation adjustments

* BAEL-5645 - Revert of annotation value in unit test

* BAEL-5645 - Merge with the latest remote version (after resolution of the conflicts)

* BAEL-5645 - Some refactoring due to review comments

Co-authored-by: elcimduran <elcim.duran@kboxglobal.com>
2022-07-29 15:13:54 +02:00
Loredana Crusoveanu d41f65b479 Merge pull request #12542 from Asjad-J/master
Updated README.md
2022-07-29 10:38:38 +03:00
Asjad J 35dadda533 Merge branch 'eugenp:master' into master 2022-07-29 00:11:05 +05:00
Ralf Ueberfuhr 33c18f2cd5 BAEL-5630: Spring Boot 3 Sample (#12449)
* BAEL-5630: Spring Boot 3 Sample

* BAEL-5630: Reorganize project in Maven profiles

* BAEL-5630: Upgrade Maven PMD plugin version

* BAEL-5630: Rename tests to follow naming conventions
2022-07-28 21:04:26 +02:00
Asjad J a9115211bc Updated README.md
added link back to the article: https://www.baeldung.com/spring-jms-testing
2022-07-28 23:40:22 +05:00
Asjad J e34a4ed143 Updated README.md
added link back to the article: https://www.baeldung.com/spring-reactive-read-flux-into-inputstream
2022-07-28 23:36:27 +05:00