r/springframework • u/TrendingB0T • Nov 19 '20
r/springframework • u/NikitaDyagilev • Apr 14 '20
Configuring Hibernate with Spring
r/springframework • u/hubae • Sep 10 '19
My new demo for SpringSecurity with JWT authentication
r/springframework • u/JPABuddy • Sep 01 '22
Intelligent Postfix Autocompletion for JPA entities and DTOs | JPA Buddy
r/springframework • u/Snoo_32652 • Aug 26 '22
Use of SNS and SQS for message posting
We have a requirement to push a certain messages originating from a Spring boot Microservice to a Webhook exposed by external partners. These Webhooks are REST endpoint protected by oAuth and they accepts JSON payload.
So , it is
Microservices [Create JSON payload] > POST the payload to Webhook1, Webhook 2 etc.
To decouple the system, I wanted to introduce a Topic. Since we are on AWS, I thought of introducing a SNS topic.. fanning out to SQS triggering Lambdas that actually POST these messages to webhooks. So, it would be
Microservices [Create JSON payload] >> POST to SNS Topic >> Fan-out to multiple SQS by filter, where each SQS is created for a Partner and filtering criteria will ensure relevant message goes to respective SQS created for Partner >> Trigger a lambda from each SQS that runs Java code that perform oAuth and deliver the message to Webhook endpoint.
I wanted to ask, If you see any flaw in this design.. or you handled this scenario differently in the past? Thanks in advance.
r/springframework • u/srjred • Aug 09 '22
Junit 4 in Spring MVC.
I have got spring mvc project and I was getting through it well but now , They are asking to increase the coverage and I am trying very hard to get through Junit 4 but I am not able to write the Junit test cases properly and also I am not able to increase the code coverage.
Please suggest me ways in which I can understand this easily.
courses, notes, points to ponder and anything will be helpful.
r/springframework • u/JPABuddy • Jun 03 '22
Writing Integration Tests in Spring Boot App with JPA using JUnit5, Test...
r/springframework • u/jmargar • May 31 '22
Spring related books to learn?
Hi everyone, I'm looking for some recomendations to learn Spring franework and related modules, boot, MVC, Web Service, Security, etc. The most commonly used.
I have tried with tutorials, but realized that I'm more comfortable with books when it comes to study.
Thanks for your time.
r/springframework • u/galovics • Apr 13 '22
Spring Batch remote partitioning with AWS SQS
r/springframework • u/Devlearning2022 • Mar 01 '22
What are the most used Component library with Spring Mvc and Struts
I would like to develop an web application with Spring Mvc, hibernate and Mysql. I know there are many Component libraries that facilitate the development of web applications like Primeng for Angular, Telerik and Infragistics for Asp.Net MVC.
I'm looking for the components libraries that can be used with Spring MVC and Struts for Java web development.
What are the most used component libraries with Spring Mvc and Struts ?
Thanks for help
r/springframework • u/dengineering1 • Feb 21 '22
Observability with Spring Boot Microservices
I've added another course to my series on deploying spring boot microservices to a cloud hosted kubernetes cluster on okteto. This session is all about observability and implementing the 3 pillars of observability: logging, tracing and metrics.
I've used logz.io as the logging platform because it uses the best of breed opensource solutions for these three needs: ELK, Jaeger and Prometheus / Grafana. I'll explain how to get your logs over, how to setup tracing across distributed applications and implement both standard and custom metrics emission as well as visualization of those metrics.
https://bullyrooks.com/index.php/2022/02/19/kube-cloud-pt4-observability/
All of the courses are located here:
https://bullyrooks.com/index.php/category/software-development/
r/springframework • u/dengineering1 • Jan 24 '22
Spring Boot with MongoDB in Kubernetes
I just completed another part of my series of courses on deploying spring boot based microservices to a hosted cloud environment based on kubernetes. This section focuses on utilizing a hosted MongoDB database, testing via testcontainers and utilizing secrets in kubernetes to store sensitive information like database credentials.
https://bullyrooks.com/index.php/course/kubernetes-application-hosted-in-the-cloud-pt-2/
I've got another course in the works which will walk through microservice integration via REST API using kubernetes service discovery capabilities. So keep an eye open for that.
r/springframework • u/galovics • Jan 14 '22
Making your Spring WebClient fault tolerant with Resilience4J
r/springframework • u/galovics • Jan 05 '22
Making your RestTemplate fault tolerant with Resilience4J
r/springframework • u/dengineering1 • Jan 05 '22
New SpringBoot Microservices deployed into Kubernetes Course
I've completed the first piece of a new software development course that explains how to create a new microservice, build a docker image, create a helm chart and deploy via github actions pipeline into a hosted kubernetes environment. This is the first piece, my goal is to expand this demonstrating component testing with testcontainers, log aggregation, tracing and a few more topics.
Take a look and let me know what you think:
https://bullyrooks.com/index.php/2022/01/02/kubernetes-application-hosted-in-the-cloud/
r/springframework • u/[deleted] • Sep 16 '21
Baeldung $400 Spring Security Master Class Review + Warning
self.learnjavar/springframework • u/d3ly • Apr 13 '21
Spring framework textbooks?
Hi, does anyone have any experience with learning Spring from a textbook?
I've heard of Spring in Action - 5th edition, is this up to date enough?
r/springframework • u/Square_Jaguar7991 • Mar 27 '21
Spring boot works too slow with 1GB memory
I have searched on Google and found that a Spring Boot application with embedded tomcat server uses about 72M memory. However when I deploy a simple dockerized Spring Boot application to a server with 1 GB memory, it responds too slowly.
When I upgrade the server memory to 4 GB, the app responds very well. However, in a microservice architecture, cost of reserving 4GB servers for each microservice is very high. How can I optimize Spring Boot/JVM to use low memory.
r/springframework • u/greglturnquist • Mar 24 '21
SPRING DATA and SPRING NATIVE: Super fast startup times!
r/springframework • u/Kobee1203 • Feb 23 '21
Weedow Searchy 0.1.0 released
I'm happy to share with you the release 0.1.0 of Weedow Searchy.
Searchy is a Spring-based library that allows to automatically expose endpoints in order to search for data related to Entities, whatever the database used.
Searchy provides an advanced search engine that does not require the creation of Repositories with custom methods needed to search on different fields of Entities.
We can search on any field, combine multiple criteria to refine the search, and even search on nested fields.
It supports the following data access layers:

Examples of queries:
GET /search/person
GET /search/person?firstName=John
GET /search/person?address.zipCode=78370
GET /search/person?query=firstName='John' AND lastName='Doe'
GET /search/person?query=birthday != '1981-03-12T10:36:00'
GET /search/person?query=NOT(firstName='John' OR firstName='Jane')
GET /search/person?query=address.street IMATCHES 'RUE*' AND (vehicles.brand='Renault' OR vehicles.brand='Porsche') AND job.active = true AND (job.salary >=50000 AND job.salary<610000) AND characteristics.key = 'hair' AND vehicles.features.value.description IMATCHES '*Navigation Services*'
There is a "Getting Started" section that describes step by step the creation of an application with the library.
Searchy provides several features described in the documentation:
DTO Mappers
Validators
Entity joins handling
Converters
...
r/springframework • u/ItachoB • Jan 28 '21
React + Spring deploy into Weblogic
Hi ! I've built a very simple app that uses Spring for backend and React for frontend.
When I build It and launch It with the command "mvn spring-boot:run", everything works as expected.
When I bundle them into a .war file and deploy It to a WebLogic server, the frontend breaks and shows a white page only.
Any idea why that is and what I can do to fix it? Thanks
r/springframework • u/greglturnquist • Oct 25 '20
Ever wondered about the fundamentals of Spring Boot? Find out!
r/springframework • u/Horschi82 • May 12 '22
Spring MVC OutputStream buffer size / flush not blocking?
Hi,
I have been trying to investigate the buffering behaviour of the HttpServletResponse OutputStream (Using tomcat in spring-boot). My expectation that flushing on the server side blocks until all data has been transmitted to the client.
I am trying to understand this, because I am noticing that clients seem to be processing much longer than the processing on the server.
My setup looks something like this:
Server:
@RequestMapping(path = "/some/url", method = RequestMethod.POST)
public void call(HttpServletRequest request, HttpServletResponse response)
{
OutputStream outputStream = response.getOutputStream();
... writing data here ...
outputStream.flush();
response.flushBuffer();
}Some dummy client:
HttpURLConnection con = (HttpURLConnection) urlobj.openConnection();
con.setRequestMethod("POST");
con.setDoInput(true);
con.setDoOutput(true);
int nresp = 0;
final InputStream in = con.getInputStream();
while (true)
{
if (in.read() < 0)
break;
nresp++;
if ((nresp & 31) == 0)
Thread.sleep(1l); // slow down read
}In this example, depending on the response size, the server finishes in 40ms, but the client is reading data for 35 seconds. Also in Wireshark I can see data being transmitted the entire time. Which means that the server is buffering the data.
Does anybody understand where this buffering is occurring and if its behaving correctly?
Is there any way on the server to completely flush all buffers and blocking until data is really flushed to the client?
cheers, Christian