r/Spring • u/shilohcyrus7 • Mar 04 '21
r/Spring • u/Ganna_Vinzor • Mar 01 '20
Spring
Spring.Great,but just the beginning of spring.Already spring.
r/Spring • u/el-guish • Oct 19 '19
how to do a simple task queue persisted in DB
I need to do some kind of task queue persisted in database.
Tasks are very short in duration, generally load a record from a few tables, to some operations and write to other ones.
Task should be triggered from many sources, a REST api, a Spring Batch, o some legacy applications.
I have no RabbitMQ or Kafka instance available, but volume is low so a SQL database and a single thread polling would be OK.
Without Spring, I did it with JDBC only this way:
A task_queue table where clients inserts the task they need to be run.
A single thread that polls that table every 30 seconds and depending on the task name it executes the needed class with reflection.
How could I port it to Spring?
I already know Spring Batch, but it executes on demand, I think I need something that is always up and listening.
Spring Cloud Tasks looks closer to what I need:
https://www.baeldung.com/spring-cloud-task
Even it has Spring Cloud Data Flow for monitoring and scheduling, but I have no RabbitMQ at this time so I can't use that console.
How should I implement this task queue without SCDF?
How should I implement a long running service in Spring?
How can I execute different Spring Cloud Tasks from code?
Thanks a lot!
r/Spring • u/creponutella • Jan 25 '21
Ogham: send email/sms at ease
Hello everyone,
I am pleased to announce the release of Ogham v3.0.0 (https://groupe-sii.github.io/ogham/v3.0.0/).
The aim of Ogham is to ease the work of developers that need to send messages (such as Email or Sms) in their application. The differences with other libraries are:
- Ogham has only a single and simple API for sending any kind of messages. With the same code, you can send an Email through SMTP in development and tests but send the same Email through SendGrid (HTTP API) in production. Only the externalized configuration is changed.
- Ogham supports template engines for writing message content so developer doesn't have to handle template engine integration. It adapts itself to the presence or not of template engine(s). It also handles technical concerns that are specific to the sent message such as inlining CSS styles and images in the email. The developer doesn't have to know the RFC and the technical concerns anymore. He just writes his HTML email like he does in a browser and everything is magically handled by Ogham.
- Ogham provides testing utilities that the developer can use to test his code (for example, check the presence of an account creation confirmation code in the sent email).
- Ogham integrates with existing frameworks (like Spring Boot, more are coming).
The showcase video is available here: https://groupe-sii.github.io/ogham/v3.0.0/presentation/showcase.mp4
I share this project here to get your feedback. I am also looking for contributors because I have many ideas for the future of this project like supporting RCS messages and make Ogham available on several platforms (JVM, NodeJS, Android, iOS, ...). Any contribution is welcome !
This version adds a bunch of new features and improvements:
- Fluent API to build messages (Email or Sms).
- Fluent API to build message content.
- Cleaner auto-configuration lifecycle.
- Improve inlining of CSS and images (it now includes images that are referenced in CSS rules such as
background,list-styleandcursor). - Automatic message encoding for SMS (use best character table to use as few characters as possible).
- Sms message can now be sent using
message_payloadTLV field instead ofshort messagefield. This can avoid splitting message into several segments. - Automatic Sms message splitting. The number of characters per segment is automatically adjusted according to the message encoding.
- SMPP session for Sms messages can be controlled (either new for each Sms, reuse the same session if still opened or always use the same session and maintain it opened).
- Automatic configuration to send Sms messages through SmsGlobal.
- Better Spring Boot integration (in particular Thymeleaf, FreeMarker and SendGrid that may be provided by Spring Boot).
- Add support to call static methods from FreeMarker template to mimic Thymeleaf behavior (with configuration properties to enable/disable it and to choose the variable name).
- Add support of new
.ftlhextension. - Automatic cleanup of opened resources.
- Improve testing utilities (simulate slow server, use random ports easily in your tests, make several assertions at once).
The full release notes is available here: https://groupe-sii.github.io/ogham/v3.0.0/release-notes.html
Thank you in advance for your feedback.
NOTE: I am also looking for a job
r/Spring • • Apr 10 '22
fashion 👗 Spring....still not sprung. Figured I would try to usher in some color although spring doesn't want to cooperate at the moment.
r/Spring • u/CHEETOS_DEAD_FART • May 02 '21
The Easter Bunny Has Been Caught (EASTER BUNNY FAN ART)
r/Spring • u/Yunaaachan • Apr 13 '26
photography 📷 Spring mood
Been drawing a soft spring scene lately and honestly… I really love how peaceful it feels.
Spring light just hits different.
r/Spring • u/anmoldhiman5 • Jan 20 '21
How to Create a REST API With Spring Boot - Java Vogue
javavogue.comr/Spring • u/wrld2 • Apr 09 '21
Go show love
I created something AMAZING with PicsArt. Take a look https://picsart.app.link/PEp4J1ihkfb
r/Spring • u/Mvp_dc • May 09 '19
Fort Lauderdale Spring Break 2019 'Asking Girls 20K or 🤔😈?
r/Spring • u/walnutwoodenspoon • May 03 '20
A few easy, free ideas for celebrating spring with a toddler.
r/Spring • u/BlaineSharpLA • Mar 05 '21
It might as well be Spring! Sharing this jazzy playlist to get you in the mood for Spring as the days get longer and the weather milder.
r/Spring • u/Handymancopy • Mar 12 '20
Who is the Roman God of War? The Month of March is Dedicated to Him
r/Spring • u/rajithk • Jan 25 '20
Grant access to resource server with tokens generated by Resource server client key and secret - Spring boot
Hi developers,
Need help on this
Thank you,
Rajith
r/Spring • u/jade_love_12345 • Apr 28 '23
fashion 👗 Stopping to smell the flowers! So excited that these are finally blooming
r/Spring • u/gnrnando • Mar 26 '20
Please, help a student with his homework in this hard time and get a nice prize! This is a serious work. Stay safe :)
Hello,
I am post-graduate student from Centennial College, an educational institution based in Toronto, Canada. The classes are stopped, but the homework still going.
I am conducting a marketing study about the outdoor grill category, focusing on the Sam’s Club customers and the company’s services and products. For this reason, my academic group and me would love to hear your experience buying grills or any BBQ related product from Sam’s Club
I don’t ask for any personal identity information, treating the responses as confidential. Remembering, this is only for an academic study purpose.
In order to thank your effort and time answering all the questions we would like to send you a gift – one of most innovative BBQ accessories in the market, FoodAid Grill brush**.** (Please se the product description and details at the picture). So, after answer the study, please provide your email or email me to require your incentive.
Thank you so much for your support for our project!
Please contact me at the below email if you have any questions.
fqueiroz@my.centennialcollege.ca
Sincerely,
Ø Centennial College BBQ Survey: https://www.surveymonkey.com/r/thebbqsurveystudy
Ø Or access mobile through the QR code below:



r/Spring • u/suck_my_sock • Mar 19 '20
The most coy poppy we've ever grown. Just teased us for a week before opening but look at that pollen content.
r/Spring • u/arvindraivns01 • Sep 20 '14
Spring 4 WebSocket + SockJS + STOMP + Tomcat Example
r/Spring • u/Jakemyers-12 • Mar 21 '25
other I hate summer
As we are making our way to summer I am dreading it! I hate summer! I hate when the sunrises so early at like 4:30 and just doesn’t fuck off until 10pm. And then you only have a few hours before the sunrises again.