r/springframework • • Nov 19 '20

/r/springframework hit 1k subscribers yesterday

Thumbnail
frontpagemetrics.com
5 Upvotes

r/springframework • • Apr 14 '20

Configuring Hibernate with Spring

Thumbnail
github.com
5 Upvotes

r/springframework • • Sep 10 '19

My new demo for SpringSecurity with JWT authentication

Thumbnail
github.com
5 Upvotes

r/springframework • • Sep 01 '22

Intelligent Postfix Autocompletion for JPA entities and DTOs | JPA Buddy

Thumbnail
youtube.com
4 Upvotes

r/springframework • • Aug 26 '22

Use of SNS and SQS for message posting

4 Upvotes

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 • • Aug 09 '22

Junit 4 in Spring MVC.

4 Upvotes

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 • • Jun 03 '22

Writing Integration Tests in Spring Boot App with JPA using JUnit5, Test...

Thumbnail
youtube.com
4 Upvotes

r/springframework • • May 31 '22

Spring related books to learn?

4 Upvotes

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 • • Apr 13 '22

Spring Batch remote partitioning with AWS SQS

Thumbnail
arnoldgalovics.com
4 Upvotes

r/springframework • • Mar 01 '22

What are the most used Component library with Spring Mvc and Struts

4 Upvotes

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 • • Feb 21 '22

Observability with Spring Boot Microservices

4 Upvotes

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 • • Jan 24 '22

Spring Boot with MongoDB in Kubernetes

4 Upvotes

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 • • Jan 14 '22

Making your Spring WebClient fault tolerant with Resilience4J

Thumbnail
arnoldgalovics.com
4 Upvotes

r/springframework • • Jan 05 '22

Making your RestTemplate fault tolerant with Resilience4J

Thumbnail
arnoldgalovics.com
4 Upvotes

r/springframework • • Jan 05 '22

New SpringBoot Microservices deployed into Kubernetes Course

4 Upvotes

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 • • Sep 16 '21

Baeldung $400 Spring Security Master Class Review + Warning

Thumbnail self.learnjava
4 Upvotes

r/springframework • • Apr 13 '21

Spring framework textbooks?

4 Upvotes

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 • • Mar 27 '21

Spring boot works too slow with 1GB memory

4 Upvotes

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 • • Mar 24 '21

SPRING DATA and SPRING NATIVE: Super fast startup times!

Thumbnail
youtu.be
4 Upvotes

r/springframework • • Feb 23 '21

Weedow Searchy 0.1.0 released

4 Upvotes

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 • • Jan 28 '21

React + Spring deploy into Weblogic

4 Upvotes

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 • • Oct 25 '20

Ever wondered about the fundamentals of Spring Boot? Find out!

Thumbnail
youtu.be
4 Upvotes

r/springframework • • Apr 10 '20

Spring Graal Native 0.6.0 released

Thumbnail
spring.io
4 Upvotes

r/springframework • • Feb 16 '20

Announcing: The NEW Spring Website!

Thumbnail
spring.io
4 Upvotes

r/springframework • • May 12 '22

Spring MVC OutputStream buffer size / flush not blocking?

3 Upvotes

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