Commit Graph

9629 Commits

Author SHA1 Message Date
Kai Yuan 18d1cb40dc Armstrong Number in Java (#12637) 2022-08-24 20:40:26 -05:00
kpentaris 876d78b188 [BAEL-4500] Add locked ownable synchronizers example code (#12608)
* Add locked ownable synchronizers example code

* refactor application snippet
2022-08-24 15:47:46 +02:00
davidmartinezbarua 923ab8e513 Merge pull request #12634 from thibaultfaure/article/BAEL-4345-swagger-specify-two-response-with-same-code
BAEL-4345 add code for the swagger specify two responses with the sam…
2022-08-24 00:34:19 -03:00
Hamid Reza Sharifi 7af516d159 Bael 5407: Multitenancy with Spring Data JPA (#12507)
* BAEL-5407: add entity, repository, controller, main class

* BAEL-5407: add starter-web and postgres dependencies

* BAEL-5407: add sample script

* BAEL-5407: add tenant definition file

* BAEL-5407: add tenant filter

* BAEL-5407: add AbstractRoutingDataSource class

* BAEL-5407: add TenantContext class

* BAEL-5407: add MultitenantConfiguration class

* BAEL-5407: replace Object with String

* BAEL-5407: improve indentation

* BAEL-5407: remove printStackTrace()

* BAEL-5407: add security classes

* BAEL-5407: add security dependencies

* BAEL-5407: get Tenant from JWT token

* BAEL-5407: improve indent

* BAEL-5407: improve code quality

Co-authored-by: h_sharifi <h_sharifi@modernisc.com>
2022-08-23 22:33:31 +01:00
Harry9656 77671ade4b JAVA-5683: Difference Between List.of and Arrays.asList (#12564)
Co-authored-by: Harpal Singh <harpal.singh@kaleyra.com>
2022-08-23 22:22:43 +01:00
psevestre d03fb7e217 [BAEL-2765] Rename test & add module (#12639)
* [BAEL-2765] Rename test & add module

* [BAEL-2765] Fix java target

* [BAEL-2765] Fix java target
2022-08-23 17:00:55 +02:00
anuragkumawat 1c87d1dfce JAVA-13856 Remove log file (#12631) 2022-08-22 22:50:30 +05:30
anuragkumawat 788cb3ba37 JAVA-13855 Add missing jar file (#12632) 2022-08-22 22:49:42 +05:30
Haroon Khan b9789c23f0 [JAVA-13976] Upgrade Spring Boot to 2.7.2 (#12603)
* [JAVA-13976] Upgrade Spring Boot to 2.7.2

* [JAVA-13976] Fix failing test due to incorrect Jackson version
2022-08-22 22:47:32 +05:30
thibault.faure 26483e6232 BAEL-4345 add code for the swagger specify two responses with the same code article 2022-08-22 00:05:31 +02:00
Kai Yuan a20006b451 toggle boolean (#12618) 2022-08-21 11:43:45 -05:00
Shaun Phillips 94ecd00052 CS-868 Add Luhn Algorithm (#12594)
* CS-868 Add Luhn Algorithm
2022-08-21 08:32:00 -06:00
panos-kakos 0b9549bd3e [JAVA-13854] Half list moved (#12598)
* [JAVA-13854] added parent module

* [JAVA-13854] moved apache-tapestry(submodule) to web-modules(parent)

* [JAVA-13854] moved bootique(submodule) to web-modules(parent)

* [JAVA-13854] moved dropwizard(submodule) to web-modules(parent)

* [JAVA-13854] moved blade(submodule) to web-modules(parent)

* [JAVA-13854] moved java-lite(submodule) to web-modules(parent)

* [JAVA-13854] moved jooby(submodule) to web-modules(parent)

* [JAVA-13854] moved linkrest(submodule) to web-modules(parent)

* [JAVA-13854] moved ninja(submodule) to web-modules(parent)

* [JAVA-13854] moved ratpack(submodule) to web-modules(parent)

* [JAVA-13854] moved resteasy(submodule) to web-modules(parent)

* [JAVA-13854] moved restx(submodule) to web-modules(parent)

* [JAVA-13854] moved spark-java(submodule) to web-modules(parent)

* [JAVA-13854] moved vraptor(submodule) to web-modules(parent)

* [JAVA-13854] delete modules that were moved

* [JAVA-13854]

* [JAVA-13854]

* [JAVA-13854] delete ninja submodule  + moved raml(submodule) to web-modules(parent)

* [JAVA-13854] moved gwt(submodule) to web-modules(parent)

* [JAVA-13854] moved jakarta-ee(submodule) to web-modules(parent)

* [JAVA-13854] moved javax-servlets(submodule) to web-modules(parent)

* [JAVA-13854] moved javax-servlets-2(submodule) to web-modules(parent)

* [JAVA-13854] moved jee-7(submodule) to web-modules(parent)

* [JAVA-13854] moved play-framework(not a module) to web-modules

* [JAVA-13854] fix failing test

* [JAVA-13854] moved struts-2(submodule) to web-modules(parent)

* [JAVA-13854] moved wicket(submodule) to web-modules(parent)

* [JAVA-13854] deleted modules that were moved to web-modules

* JAVA-13854 Removed moved modules from the main pom.xml

Co-authored-by: panagiotiskakos <panagiotis.kakos@libra-is.com>
Co-authored-by: Dhawal Kapil <dhawalkapil@gmail.com>
2022-08-21 14:44:00 +05:30
Kai Yuan 842a71ad92 Check if a number is positive or negative in Java (#12604)
* Check if a number is positive or negative in Java

* reformat single line if/else statements

* Check if a number is positive or negative in Java
2022-08-20 21:46:14 -05:00
freelansam 3f1f6bd34b JAVA-13826: Align module names, folder names and artifact id (#12624) 2022-08-20 23:54:43 +05:30
anuragkumawat 6bc1d484ca JAVA-13855 Create new microservices-modules (#12612) 2022-08-20 14:20:24 +05:30
anuragkumawat 14c998c3ac JAVA-13856 Create new security-modules (#12622) 2022-08-20 13:47:25 +05:30
Dhawal Kapil b38eb760d1 JAVA-13941 Incremented version of esapi (#12621) 2022-08-19 23:09:28 +05:30
apeterlic e703663759 Add @ApiOperation vs @ApiResponse in Swagger (#12570)
* Add @ApiOperation vs @ApiResponse in Swagger

* Minor fixes

* Fix - rename package
2022-08-19 12:55:36 +02:00
panos-kakos 520c7d7083 [JAVA-13944] Upgrade lombok dependency for main pom.xml + child modules (#12617)
Co-authored-by: panagiotiskakos <panagiotis.kakos@libra-is.com>
2022-08-19 12:13:42 +05:30
panos-kakos 99adc6e67e Java 13945 (#12611)
* [JAVA-13945] Upgrade guava version to 31.1-jre

* [JAVA-13945] Use guava.version property in child modules

* [JAVA-13945] Use guava.version property in child modules

* [JAVA-13945] revert changes

Co-authored-by: panagiotiskakos <panagiotis.kakos@libra-is.com>
2022-08-19 12:06:35 +05:30
freelansam 23f33d32fe JAVA-13826: Align module names, folder names and artifact id (#12601) 2022-08-19 12:04:58 +05:30
Ulisses Lima 941d6701f3 BAEL-5657 - Reading JSON from a URL in Java (#12584)
* moving SpringBootPersistenceApplication class to its own package

* from com.baeldung to com.baeldung.logging to prevent it from loading
contexts from other applications.

* moving SpringBootPersistenceApplication class to its own package

* from com.baeldung to com.baeldung.logging to prevent it from loading
contexts from other applications.

* Spring Data MongoDB - Configure Connection

Ready for revision.

* fixed tests to reflect article changes

* BAEL-5657

* reverting BAEL-5657

* reverting BAEL-5657

* done

* reverting bael-5366

* revert bael-5366

* revert bael-3366

* including section 3

3. Using commons-io and org.json

* replacing tabs with spaces
2022-08-19 00:00:45 +02:00
Loredana Crusoveanu 7050d0a1e8 Merge pull request #12464 from jrelmar/spring-jdbc-batch
BAEL-5545: prepared a simple demo to benchmark spring jdbc batch inserts
2022-08-18 20:28:12 +03:00
davidmartinezbarua 7253aab7f8 Merge pull request #12599 from thibaultfaure/improvement/BAEL-5582-kafka-message-filtering
BAEL-5582 add code for the kafka message filtering improvement
2022-08-18 10:53:39 -03:00
panos-kakos 7bbcb55290 Java 13943 (#12609)
* [JAVA-13943] Upgrade commons-cli version to 1.5

* [JAVA-13943] Upgrade commons-cli version to 1.5.0

Co-authored-by: panagiotiskakos <panagiotis.kakos@libra-is.com>
2022-08-18 12:40:34 +05:30
panos-kakos 172f9fb592 [JAVA-13946] Upgrade byte-buddy to 1.12.13 (#12607)
Co-authored-by: panagiotiskakos <panagiotis.kakos@libra-is.com>
2022-08-18 12:39:05 +05:30
psevestre a0942e5c53 [BAEL-2765] PKCE Support for Secret Clients (#12605)
* [BAEL-4849] Article code

* [BAEL-4968] Article code

* [BAEL-4968] Article code

* [BAEL-4968] Article code

* [BAEL-4968] Remove extra comments

* [BAEL-5258] Article Code

* [BAEL-2765] PKCE Support for Secret Clients
2022-08-18 08:25:19 +02:00
dupliaka 4e0ea2972f Update optaplanner example (#12467)
* Update optaplanner example

Moved to 8.24.0.Final version
Removed deprecated drools calculation
Added constraints stream solver
Updated to solver config java api

* Update optaplanner/pom.xml

Co-authored-by: Jiří Locker <jiri.locker@gmail.com>

* PR feedback

* Move OptaPlanner module to jdk9-and-above
Moved to default-jdk9-and-above and integration-jdk9-and-above

Co-authored-by: Jiří Locker <jiri.locker@gmail.com>
2022-08-18 10:02:25 +05:30
Tapan Avasthi 4e18fd0aa9 BAEL-5680: Guide to Check if Apache Kafka Server is Running (#12600)
Co-authored-by: Tapan Avasthi <tavasthi@Tapans-MacBook-Air.local>
2022-08-17 21:52:06 -05:00
Eugene Kovko 2d5e7da1fa BAEL-5646: String permutation improvements (#12613) 2022-08-17 22:14:47 +02:00
Loredana Crusoveanu fad5f79b8c Merge pull request #12610 from Asjad-J/master
Updated README.md
2022-08-17 20:30:15 +03:00
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
Asjad J 4df68da1c6 Updated README.md
added link back to the article: https://www.baeldung.com/java-log4j2-file-and-console
2022-08-17 16:40:01 +05:00
Asjad J aba86e1819 Updated README.md
added link back to the article: https://www.baeldung.com/java-streams-multiple-filters-vs-condition
2022-08-17 16:37:28 +05:00
Asjad J b8dfb5701f Updated README.md
added link back to the article: https://www.baeldung.com/spring-openfeign-propagate-exception
2022-08-17 16:34:32 +05:00
Asjad J 82346b90c8 Updated README.md
added link back to the article: https://www.baeldung.com/postman-soap-request
2022-08-17 16:31:41 +05:00
Asjad J 589c347b1a Updated README.md
added link back to the article: https://www.baeldung.com/ops/docker-mounting-multiple-volumes
2022-08-17 16:29:50 +05:00
Asjad J 75d7bb2f55 Updated README.md
added link back to the article: https://www.baeldung.com/java-string-formatting-named-placeholders
2022-08-17 16:27:03 +05:00
Asjad J e731fdd59a Updated README.md
added link back to the article: https://www.baeldung.com/spring-data-mongodb-connection
2022-08-17 16:24:19 +05:00
Asjad J 84ae89a14c Created README.md
added link back to the article: https://www.baeldung.com/gradle-conditional-dependencies
2022-08-17 16:18:06 +05: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
thibault.faure 90ccda2db3 BAEL-5582 add code for the kafka message filtering improvement 2022-08-15 08:48:59 +02:00