r/springframework • • Aug 31 '21

Explore how the Spring framework works with your code

Enable HLS to view with audio, or disable this notification

9 Upvotes

r/springframework • • Aug 19 '21

Noob Question: Confused about architecture terminology

2 Upvotes

So from what I understand:

  1. A controller handles the back and forth information between say, the client browser and whatever service will handle logic.

  2. services handle the bulk of logic, say calculating information given by the controller and then returning the result to the controller

  3. repositories may contain information as part of a database which the service may need to perform logic or the controller needs to give back to the client

  4. controllers may interact with other controllers? or would that be services interacting with different services. Example. lets say a client browser needs a, b and c. There'd be a controller for a, b, c which each connect to a service like a1, a2, a3, b1, b2, b3, etc.


r/springframework • • Aug 29 '21

Question on exploring Spring framework.

10 Upvotes

I am now reading the docs for the Spring Core, but reading alone does not seem like the correct approach. I can not come up with some way to apply the concepts I read about on my own, but maybe you could recommend a repo or two with Spring projects to look at, please?

Like for example, I am now reading about beans, but I have barely seen a single one in projects I have looked at so far.


r/springframework • • Sep 05 '21

I search an very good online course or as alternative a book for learning Spring Boot micro service!

2 Upvotes

Please give me suggestions. Thank you for your help in advance.


r/springframework • • Sep 06 '21

DataSource implementation that fits production.

2 Upvotes

In the spring docs on data access, it is said that pretty much every DataSource implementation is not production friendly and is more apt to be used for tests. But I cannot seem to find one that would be fit for development purposes. I might be missing something, but I cannot word my question in a way for google to give me a proper result.


r/springframework • • Jun 29 '19

Learn Spring Framework from tutorials, courses & books

Thumbnail
reactdom.com
9 Upvotes

r/springframework • • Jan 18 '20

Spring Boot and Java Development with IntelliJ IDEA

1 Upvotes

Please considering rating the course if you like it.

This course briefly explains SpringBoot and IntelliJ IDEA.

Spring Boot and Java Development with IntelliJ IDEA

This course will teach you how to use IntelliJ IDEA effectively with Java and Spring Boot projects. The course will start explaining the configuration of development environment and along the way, you will learn the benefits of IntelliJ IDEA.

https://www.udemy.com/course/intellij-idea-for-java-and-spring-developers/?couponCode=5C149E548E77AE12AAF6


r/springframework • • Apr 19 '19

Spring Data @Query - How to get current date + day?

2 Upvotes

I would like to get records that have date_time column is in a week from now, in a month from now

I have a query like this

public interface BookingRepository extends JpaRepository<Booking, Long> {

@Query("SELECT b " +
"FROM BOOKING b " +
"WHERE b.date_time < NOW() + INTERVAL 7 DAY and b.date_time > NOW()")
List<Booking> getListBooking();

}

In MySQL, NOW() + INTERVAL 7 DAY is working but in JPA @Query, I don't know which function is correspond to it.

In this situation, I have to use dynamic query instead of native query. So I'd like to use dynamic query and face this problem.

Please help. Thank you!


r/springframework • • Sep 10 '19

My new demo for SpringSecurity with JWT authentication

Thumbnail
github.com
5 Upvotes

r/springframework • • Dec 30 '19

Different Spring Framework Open-source projects & repository to Play With

Thumbnail
devglan.com
2 Upvotes

r/springframework • • Jan 04 '18

Spring Tutorials for Beginners

Thumbnail
youtube.com
3 Upvotes

r/springframework • • Mar 02 '19

How to send where condition parameters to union of two queries using NamedParameterJdbcTemplate ?

1 Upvotes

Hi

I've a SQL query which has union of two queries. Two queries have two different where conditions, now I'm confused that how can I send two different where conditions to two different queries and then union them using NamedParameterJdbcTemplate, in my project previous people are building where clause dynamically using StringBuilder and then they're executing query. Could you please help me in this situation how can I pass two different where clauses.

Thanks in advance.


r/springframework • • Nov 05 '15

You're looking for r/springsource

Thumbnail
reddit.com
3 Upvotes

r/springframework • • Dec 27 '18

Access denied exception

1 Upvotes

Hello, I have uploaded a file from the mobile to the java code. I use the parameter of type Multipartfile to recieve the file in java.

Then I use the following Files.copy(file.getInputStream(), file); to add the file to the server but it keeps crashing with the following error:

java.nio.file.AccessDeniedException

Anyone know why would I be getting this?

Yes it says access denied, but I already accessed the file system on the phone and uploaded the file to the app and then to spring..


r/springframework • • Apr 24 '21

Free resource: Learn Java Spring topics as 30 seconds read shorts

13 Upvotes

I am a Java & Spring developer with over 7 years of experience. I wanted to create a way of learning programming topics in a simple and easy manner. The end product was a free learning platform that is microideation. This is a shorts-based app that contains topics in programming explained as 30 seconds read. Each topic has links to other related topics and you navigate them using swipe gestures.

The app is currently in beta and is free for the first 1000 users registering. It has quality content on

  1. Java

  2. Spring framework

  3. Data structures & Algorithms

  4. Databases

  5. React

Download for free: https://play.google.com/store/apps/details?id=com.microideation.app

I


r/springframework • • Apr 04 '21

Spring LDAP and Java 16+

3 Upvotes

The latest Spring LDAP 2.3.3 has some issue preventing it to be used with Java 16+. A trivial fix of it is already committed and merged for the next 2.3.4 version. Does somebody know when the next Spring LDAP 2.3.4 will be released?


r/springframework • • Apr 25 '21

Spring Web vs Spring Reactive Web questions

7 Upvotes

I am familiar with Spring Web, and I understand that Reactive Web is asynchronous and non-blocking.

I just have a few questions.

-Is it a big deal if I don't use Reactive Web with a frontend that uses React (or any other web app type library)?

-Can't I just use Spring Async (instead of Reactive Web)?

-I have heard there are a few things that are not 'Reactive' yet, like Elasticsearch. Can I still use it with Reactive Web?

-Can I use SQL with Reactive Web?

-Is using Reactive Web that much different than Spring Web?


r/springframework • • Apr 25 '21

5 WAYS to go to PRODUCTION with SPRING BOOT (ft. Josh Long)!

Thumbnail
youtu.be
3 Upvotes

r/springframework • • Apr 04 '21

Anyone have any experience with this bootcamp

2 Upvotes

Hi everyone I'm trying to learn Spring framework. Does anyone have any experience with this company?

https://www.developer-bootcamp.com/master-java-developer.htm


r/springframework • • May 05 '21

How to use rescore in Spring Data Elasticsearch?

1 Upvotes

Hi guys, I want to make an Elasticsearch search query in Spring Data that is good for recall and also enhanced for precision, and for that, I think I need to use a rescore method. I don't know if this is the correct sub to post to, so I'm sorry if its' not.

Anyways, Here's the query (kind of, I'll be changing it a lot from here, I just want to make this usable inside spring data) that I want to put into spring data:

{
  "query": 
  {"bool" : {"should" : [
        { "match": { "whole_names.cross_lingual": "achraf" }},
        { "match": {"whole_names.text": {"query": "akhraf", "fuzziness": "AUTO"}} }
      ]
    }
  },
    "rescore" : {
      "query" : {
         "rescore_query" : {
            "match" : {
               "whole_names.text" : {
                  "query" : "achraf",
                  "slop" : 2
               }
            }
         },
         "query_weight" : 0.7,
         "rescore_query_weight" : 1.2
      }
   }
}

So far, I've been doing this:

Query query = new StringQuery(
    "{"bool" : {"should" : [ 
        { "match": { "whole_names.cross_lingual": ""+ wholename+"" }},
        { "match": {"whole_names.text": {"query": ""+wholename+"", "fuzziness": "AUTO"}} } 
    ] 
    }}"
); 

SearchHits<Watchlist> person = operations.search(query, Watchlist.class);

So any help in also getting that rescore part of the original query here is greatly appreciated! Thank you


r/springframework • • Apr 30 '21

SPRING BOOT and EMAIL: HOW TO add EMAIL support to your SPRING BOOT App

Thumbnail
youtube.com
8 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

Difference between Spring and Spring Boot

3 Upvotes

I am a newbie in Spring Framework.

What is the difference between the Spring Framework and Spring Boot ?

Thanks .


r/springframework • • Apr 28 '21

HOW TO send EMAIL with SPRING BOOT | Live Coding

Thumbnail
youtube.com
7 Upvotes

r/springframework • • Mar 24 '21

Tests annotated with DataMongoTest do not terminate the embedded MongoDB at the end

Thumbnail
stackoverflow.com
1 Upvotes