Commit Graph

9579 Commits

Author SHA1 Message Date
sdhiray7 087a50b2e7 [BAEL-5661] Integer.toString(int i) vs String.valueOf(int i) (#12606)
* 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

* Create unit test file

* Remove unnecessary files

* Update package name
2022-08-17 17:34:12 +02:00
Abhinav Pandey 72409da627 BAEL-5677 - Logging to both file and console with log4j (#12550)
* BAEL-5677 - Logging to both file and console with log4j

* Moving from log4j to log4j2

* Correction in class name

* Moving to log4j2 package
2022-08-17 09:35:59 +05:30
davidmartinezbarua ff63982af2 Merge pull request #12590 from etrandafir93/features/BAEL-5674-streams-multiple-vs-single-filters
BAEL-5674: added code examples for the article
2022-08-16 15:55:52 -03:00
anuragkumawat 2122565082 JAVA-13734 Update article Introduction to JSON Schema in Java (#12565)
* JAVA-13734 Update article Introduction to JSON Schema in Java

* JAVA-13734 Corrected the code formatting
2022-08-16 22:16:34 +05:30
anuragkumawat e96af43f40 JAVA-12628 Rename CountdownLatchResetExampleUnitTest (#12602) 2022-08-16 22:14:49 +05:30
Chrys Exaucet 38546b77ae BAEL-5540: Sending Soap Request via Postman (#12581)
* fix(build): remove jaxb2-maven-plugin plugin

XCJ fails due to unresolved/conflicting  dependencies. The project runs fine without jaxb2-maven-plugin plugin, given maven-jaxb2-plugin is already there.

* fix(build): correct gen files imports

maven-jaxb2-plugin generates in  com.baeldung.springsoap.client.gen, not com.baeldung.springsoap.gen

* chore: add postman collection

* revert: set back jaxb2-maven-plugin

Didn't run project with Java 1.8, that's why I was facing build errors

reverts cb3aed358c & 56f2b1fd93
2022-08-15 22:01:44 -06:00
lucaCambi77 c712729d6a [ BAEL 5508 ] - Mounting Multiple Volumes on a Docker Container (#12589)
* multiple mounts docker compose

* exclude localstack files
2022-08-15 20:09:12 -05:00
Kai Yuan 8ce82953c5 Named Placeholders in String Formatting (#12576)
* Named Placeholders in String Formatting

* assert notEqualTo
2022-08-15 19:48:15 -05:00
Haroon Khan c8bb6d7603 [JAVA-12608] Fix WebClient integration tests (#12597) 2022-08-15 14:08:46 +05:30
panos-kakos f242abf1a1 [JAVA-13838] fixed tests (#12596)
Co-authored-by: panagiotiskakos <panagiotis.kakos@libra-is.com>
2022-08-15 12:15:26 +05:30
Eugene Kovko e983f3572b BAEL-5646: String permutation examples (#12595) 2022-08-14 20:35:52 +02:00
sdhiray7 06ac43bc9e [BAEL-5661] Integer.toString vs String.valueOf (#12591)
* 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

* Create unit test file

* Remove unnecessary files
2022-08-14 20:23:47 +02:00
emanueltrandafir1993 536866c40b BAEL-5674: added code examples for the article 2022-08-13 18:44:03 +02:00
Haroon Khan a800f72b99 [JAVA-12608] Add logging to debug failing tests (#12587) 2022-08-12 20:32:30 +05:30
Loredana Crusoveanu 3252ba5775 Merge pull request #12585 from dkapil/task/JAVA-13630
Task/java 13630
2022-08-11 15:16:16 +03:00
Loredana Crusoveanu 4b6d1caaeb Merge pull request #12586 from panos-kakos/JAVA-13838
[JAVA-13838] updated version for overriden jackson library
2022-08-11 15:11:51 +03:00
panagiotiskakos 32efa1699a [JAVA-13838] updated version for overriden jackson library in gradle files 2022-08-11 12:33:45 +03:00
panagiotiskakos 2f58121c08 [JAVA-13838] updated version for overriden jackson library 2022-08-11 09:48:49 +03:00
Dhawal Kapil 0406bde4e3 Merge branch 'master' of https://github.com/eugenp/tutorials into
task/JAVA-13630

# Conflicts:
#	persistence-modules/fauna/pom.xml
2022-08-11 00:03:03 +05:30
Dhawal Kapil 1452fa5977 Merge branch 'task/JAVA-13630' of https://github.com/dkapil/tutorials into task/JAVA-13630 2022-08-10 23:59:47 +05:30
Dhawal Kapil 92d27acdb3 JAVA-13634 Cleanup 2022-08-10 23:47:50 +05:30
Dhawal Kapil 143d5f6eed JAVA-13630 Fixed/Clean Imports 2022-08-10 23:08:14 +05:30
Loredana Crusoveanu e18def381c Merge pull request #12582 from Asjad-J/master
Updated README.mds
2022-08-10 09:51:41 +03:00
Asjad J 80de64e44d Updated README.md
added link back to the article: https://www.baeldung.com/java-kafka-count-topic-messages
2022-08-10 09:40:12 +05:00
Asjad J f94832fc6a Updated README.md
added link back to the article: https://www.baeldung.com/java-arraylist-replace-at-index
2022-08-10 09:37:05 +05:00
Asjad J 485cfe510c Updated README.md
added link back to the article: https://www.baeldung.com/spring-thymeleaf-user-info
2022-08-10 09:34:39 +05:00
Asjad J c59da006f4 Created README.md
added link back to the article: https://www.baeldung.com/java-dockerize-app
2022-08-10 09:31:18 +05:00
Asjad J 5c06ad1996 Updated README.md
added link back to the article: https://www.baeldung.com/spring-boot-thymeleaf-image-upload
2022-08-10 09:28:25 +05:00
Asjad J 0bd6992a8a Updated README.md
added link back to the article: https://www.baeldung.com/java-aslist-vs-singletonlist
2022-08-10 09:25:46 +05:00
Asjad J 659cfd8a27 Updated README.md
added link back to the article: https://www.baeldung.com/java-interval-contains-integer
2022-08-10 09:23:50 +05:00
Asjad J 799fa1ade9 Updated README.md
added link back to the article: https://www.baeldung.com/java-get-current-stack-trace
2022-08-10 09:21:59 +05:00
Asjad J 169f3c756f Created README.md
added link back to the article: https://www.baeldung.com/spring-boot-3-spring-6-new
2022-08-10 09:19:50 +05:00
Asjad J 835a3457ba Updated README.md
added link back to the article: https://www.baeldung.com/java-volatile-vs-atomic
2022-08-10 09:14:15 +05:00
Asjad J 75c1f53f17 Updated README.md
added link back to the article: https://www.baeldung.com/spring-boot-properties-env-variables
2022-08-10 09:07:32 +05:00
Asjad J 35bb8070f6 Updated README.md
added link back to the article: https://www.baeldung.com/java-scan-annotations-runtime
2022-08-10 09:04:34 +05:00
Asjad J bc5a892105 Updated README.md
added link back to the article: https://www.baeldung.com/spring-deprecated-websecurityconfigureradapter
2022-08-10 09:00:59 +05:00
Asjad J f4d37de96b Updated README.md
added link back to the article: https://www.baeldung.com/java-multiple-keys-map
2022-08-10 08:57:37 +05:00
Asjad J c1c875b5b1 Updated README.md
added link back to the article: https://www.baeldung.com/java-static-instance-initializer-blocks
2022-08-10 08:55:16 +05:00
Asjad J 989446fd3b Updated README.md
added link back to the article: https://www.baeldung.com/java-filter-stream-unique-element
2022-08-10 08:52:55 +05:00
AttilaUhrin 8c08f53a2b [BAEL-5602] Fix docker issue with integration build, rename test to "LiveTest". (#12580) 2022-08-09 22:46:37 +05:30
Dhawal Kapil 595aa8fe3b JAVA-13632 Updated code for Mocking Void Methods with Mockito 2022-08-09 22:41:27 +05:30
Dhawal Kapil b50060aea4 Task/java 13772 (#12579)
* JAVA-13772 Updated the link of PDF to a valid one

* JAVA-13772 Updated File url and checksum
2022-08-09 22:19:56 +05:30
davidmartinezbarua a00b34660a Merge pull request #12563 from thibaultfaure/improvement/BAEL-3644-performance-of-java-mapping-framework
BAEL-3644 improvement to the performance of java mapping framework ar…
2022-08-08 14:04:39 -03:00
anuragkumawat 8e74927325 JAVA-13132 Cleaned persistence-modules sub-modules poms (#12553)
* JAVA-13132 Cleaned persistence-modules sub-modules poms

* JAVA-13132 Moved testcontainers.version property up

* JAVA-13132 Update java-jpa-3 pom
2022-08-08 19:25:28 +05:30
freelansam 205aae4d4f JAVA-13736: Fix maven-generate-war parent (#12575) 2022-08-08 19:10:32 +05:30
Keerthi cdb19ff6d5 JAVA-12045 : move java concurrency ebook content code to common module (#12559)
* JAVA-12045 : move java concurrency ebook content code to common module

* JAVA-12045: addressed the review comments .. renamed package names and placed core-java-concurrency-simple module in pom.xml

* JAVA-12045: removed duplicate module after renaming java-simple-module to core-java-simple-module
2022-08-08 18:56:55 +05:30
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