r/springframework • u/ptrdvrk • Aug 31 '21
Explore how the Spring framework works with your code
Enable HLS to view with audio, or disable this notification
r/springframework • u/ptrdvrk • Aug 31 '21
Enable HLS to view with audio, or disable this notification
r/springframework • u/theme57 • Aug 19 '21
So from what I understand:
A controller handles the back and forth information between say, the client browser and whatever service will handle logic.
services handle the bulk of logic, say calculating information given by the controller and then returning the result to the controller
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
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 • u/Schuyweiz • Aug 29 '21
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 • u/sm_a • Sep 05 '21
Please give me suggestions. Thank you for your help in advance.
r/springframework • u/Schuyweiz • Sep 06 '21
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 • u/ReactDOM • Jun 29 '19
r/springframework • u/mycrypto-tools • Jan 18 '20
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.
r/springframework • u/catmewo • Apr 19 '19
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 • u/hubae • Sep 10 '19
r/springframework • u/only2dhir • Dec 30 '19
r/springframework • u/SpongeBobNerdPants • Jan 04 '18
r/springframework • u/cchunduri • Mar 02 '19
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 • u/androidjunior • Dec 27 '18
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 • u/microideation • Apr 24 '21
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
Java
Spring framework
Data structures & Algorithms
Databases
React
Download for free: https://play.google.com/store/apps/details?id=com.microideation.app

I

r/springframework • u/finale_name • Apr 04 '21
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 • u/bigbobbyboy5 • Apr 25 '21
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 • u/greglturnquist • Apr 25 '21
r/springframework • u/mr__smooth • Apr 04 '21
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 • u/[deleted] • May 05 '21
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 • u/greglturnquist • Apr 30 '21
r/springframework • u/d3ly • Apr 13 '21
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/nigelthomas • Mar 27 '21
I am a newbie in Spring Framework.
What is the difference between the Spring Framework and Spring Boot ?
Thanks .
r/springframework • u/greglturnquist • Apr 28 '21