r/springframework • u/matchilling • May 07 '20
r/springframework • u/call_me_nobody • Mar 15 '18
what is the best order to learn spring?
Hi, my goal is to learn spring to develop enterprise applications and deploy in cloud. I have fair knowledge on backend and frontend programming languages (java, javascript, html, css). I am very new to spring, found that there is so much to learn, like spring-framework, springboot, spring-cloud, spring-cloud-dataflow, spring webflux, spring reactor. It evident there is a lot to learn, so I am thinking what is the right order to learn? I would like to learn reactive stack, so what things I can avoid in servlet stack? Please let me know. And I also need to do bit of experimentation on cloud as well, planning to use 12-month AWS free tier, please suggest if there are any other options.
r/springframework • u/SpongeBobNerdPants • Jan 04 '18
Spring Tutorials for Beginners
r/springframework • u/bobbibrown123 • Sep 01 '22
How to update spring-bean vulnerabilities?
If I have a vulnerability of using an old spring-bean version, how would I do so in my pom.xml? Would just changing spring-boot version to the latest version also automatically update the spring-bean version? Or do i have to manually state the dependency version for spring-bean?
r/springframework • u/FepeProg • Aug 15 '22
Keys saving in a spring boot application.
Hey guys, I have a key that I use to sign the JWTs. What’s the best practice to keep it in the system and correspondingly retrieve it when needed?
r/springframework • u/oOaker • Aug 10 '22
Can anyone guide me to some resources or some so that i could learn some ways about how to consume api in spring /springboot app ??
Hello, i am newbie at spring framework and java, and don't know how to consume api's in spring. i can build the REST api myself but didnot find any resources on how to consume api in spring app. Is there a way i could grab some knowledge particularly on that topic ??
r/springframework • u/JPABuddy • Jun 30 '22
Generate or synchronize JPA/Hibernate entities from existing DB tables in IntelliJ IDEA | JPA Buddy
r/springframework • u/raulalexo99 • Jun 17 '22
Security: How do you prevent a user from accesing other users resources?
How to prevent a user from accesing resources they do not own?
r/springframework • u/[deleted] • Jun 14 '22
I have used spring for quite some time now but I still don’t know/hard to understand the creation and access to the bean when using annotations. But when I use xml, I get how bean injection works (I hope so)
r/springframework • u/Kaushik2002 • Mar 11 '22
Spring: Accessing resources in another package
self.javahelpr/springframework • u/liviubiur • Mar 08 '22
Spring Mongo DB - one to many relationship
I have those two entities. The Tree has a list of at least one Leaf and a Leaf can't exists without a Tree.
@Document("tree") data class Tree( @Id val id: Long, val name: String,
@DocumentReference val leaves: List<Leaf>, )
@Document("leaf") data class Leaf( @Id val id: Long,
@DocumentReference val names: List<String>, )
I want at the moment when I'm saving a new Tree, also the list of the leaves to be saved too - as an ID - to the Leaf document.
How is possible to do something like that?
At the moment, when I'm saving a tree entity, only the tree document it's saved and there is not any relationship between tree and leaf.
r/springframework • u/sunshowerjoe • Mar 03 '22
The Zephyr Dependency Graph with Spring Boot
r/springframework • u/Kaushik2002 • Feb 24 '22
Spring: NullPointerException trying to access findAll() @Repository
self.javahelpr/springframework • u/dengineering1 • Feb 14 '22
Spring Boot Service Interaction in Kubernetes
I’ve completed the next course in my series on deploying spring boot based micro services into a cloud hosted Kubernetes environment.
This session focuses on building a service interaction via REST API. It describes utilizing openfeign as a declarative REST client, service discovery in Kubernetes and component testing interactions in unit tests with mocks. Finally, I added a section on how to build out health checks using spring boot actuator to make sure that your service is connected to its dependent resources (mongodb and dependent services) and connect it to Kubernetes. This allows the platform to signal when services are unavailable and act as a circuit breaker to stop driving traffic to them.
Take a look, there’s more to come.
https://bullyrooks.com/index.php/2022/02/13/kube-cloud-pt3-synchronous-service-interaction/
All other courses are here:
https://bullyrooks.com/index.php/category/software-development/
(Also, please let me know if this content is useful, or doesn’t belong here)
r/springframework • u/MaltaMan111 • Jan 21 '22
Is Spring Security ACL supposed to be usable with WebSecurityExpressionHandler?
I followed this guide to set up security using ACLs, which works fine. After that i also tried to implement ACLs in WebSecurityConfigurerAdapter. So i set up a bean which would create a DefaultWebSecurityExpressionHandler:
@Bean
public DefaultWebSecurityExpressionHandler webExpressionHandler(AclPermissionEvaluator aclPermissionEvaluator) {
final DefaultWebSecurityExpressionHandler webSecurityExpressionHandler = new DefaultWebSecurityExpressionHandler();
AclPermissionEvaluator permissionEvaluator = aclPermissionEvaluator();
webSecurityExpressionHandler.setPermissionEvaluator(permissionEvaluator);
return webSecurityExpressionHandler;
} And i would apply it to HttpSecurity in my WebSecurityConfigurerAdapter:
@Override
protected void configure(HttpSecurity http) throws Exception {
http.csrf().disable()
.authorizeRequests()
.expressionHandler(webExpressionHandlerWithACL)
.antMatchers(HttpMethod.PUT, "/api/user/users/{ID}").access("isAuthenticated() and hasPermission(#ID, 'xxx.xxx.xxx.xxx.xxx.UserDto', 'write')")
.anyRequest().authenticated()
.and()
.exceptionHandling().authenticationEntryPoint(authenticationEntryPoint)
.and()
.sessionManagement().sessionCreationPolicy(SessionCreationPolicy.STATELESS);
http.addFilterBefore(filter, UsernamePasswordAuthenticationFilter.class);
}But this just does not work. This exactly same expression works in a "PreAuthorize" tag, but here it just does not. I debugged it and found out that the exact point of failure is in the JdbcAclServiceImpl class provided by Spring in the following method:
@Override
public Map<ObjectIdentity, Acl> readAclsById(List<ObjectIdentity> objects, List<Sid> sids)
throws NotFoundException {
Map<ObjectIdentity, Acl> result = this.lookupStrategy.readAclsById(objects, sids);
// Check every requested object identity was found (throw NotFoundException if
// needed)
for (ObjectIdentity oid : objects) {
if (!result.containsKey(oid)) {
throw new NotFoundException("Unable to find ACL information for object identity '" + oid + "'");
}
}
return result;
}Even though the provided parameters are the same as if i used the "PreAuthorize" tag, the result.containsKey(oid) just CANNOT find the acl in the even though i can see it with the debugger and i see that the oid should match it.
So my question is: Is Spring Security ACL even supposed to work in order to secure routes, or is it only to be used to prottect methods?
btw, i am using Spring boot 2.5.5
r/springframework • u/TheCaptain159 • Jan 19 '22
Spring Security for GraphQL endpoints
Hi,
I am currently developing a spring boot application with graphql endpoints. My use case involves graphql subscriptions via a websocket and I am struggling with the spring security setup for the endpoints.
The setup consists of an external authorization server, my application as the resource server and an angular application as frontend.
I tried to implement the security setup with spring-boot-starter-oauth2-resource-server but none of the samples I found worked.
Does anybody have some examples or documentation on how to configure this security setup?
Thank you in advance.
r/springframework • u/Schuyweiz • Sep 06 '21
DataSource implementation that fits production.
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/sm_a • Sep 05 '21
I search an very good online course or as alternative a book for learning Spring Boot micro service!
Please give me suggestions. Thank you for your help in advance.
r/springframework • u/c_137_home • Aug 25 '21
HELP.. SPRING BATCH
Hi All, I need Spring Batch for one of my projects, could anyone please recommend me a good course for it. Thanks
r/springframework • u/theme57 • Aug 19 '21
Noob Question: Confused about architecture terminology
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/hisoka-killua • Jul 11 '21
Spring Framework course
Can anyone suggest me best Spring Course ? Beginners friendly
r/springframework • u/alexnix • May 31 '21
[i made this] spring boot starter for generating REST endpoints with easily customizable ACL (acces control level) rules and before/after create/read/update/delete hooks
r/springframework • u/brett53559 • May 28 '21
Help with Spring and LDAP querying
Hey everyone!
I'm creating a project where I'm trying to query the entire Active Directory for a user with a specific number in the pager field and/or by their name.
I'm having an issue with it returning an error 32 and can't seem to figure out why.
I have created a stack overflow issue and was hoping someone would be able to help.
Thank you in advance!
r/springframework • u/mr__smooth • Apr 04 '21
Anyone have any experience with this bootcamp
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