lucifer7303
JCHJava Community | Help. Code. Learn.
•Created by lucifer7303 on 6/18/2024 in #java-help
Spiring bean scope related query
for this use case
if and when required
52 replies
JCHJava Community | Help. Code. Learn.
•Created by lucifer7303 on 6/18/2024 in #java-help
Spiring bean scope related query
oh okay there is a @SessionAttribute annot for this
52 replies
JCHJava Community | Help. Code. Learn.
•Created by lucifer7303 on 6/18/2024 in #java-help
Spiring bean scope related query
so it should inject that bean if im interpreting this code right
52 replies
JCHJava Community | Help. Code. Learn.
•Created by lucifer7303 on 6/18/2024 in #java-help
Spiring bean scope related query
but now the bean is in the context right?
52 replies
JCHJava Community | Help. Code. Learn.
•Created by lucifer7303 on 6/18/2024 in #java-help
Spiring bean scope related query
the same bean will be injected into the method
52 replies
JCHJava Community | Help. Code. Learn.
•Created by lucifer7303 on 6/18/2024 in #java-help
Spiring bean scope related query
so if i were to manually add a bean throught addBean or a Configuration class
52 replies
JCHJava Community | Help. Code. Learn.
•Created by lucifer7303 on 6/18/2024 in #java-help
Spiring bean scope related query
but just DI injects a random object
52 replies
JCHJava Community | Help. Code. Learn.
•Created by lucifer7303 on 6/18/2024 in #java-help
Spiring bean scope related query
ig AutoWired tells spring to make a bean
52 replies
JCHJava Community | Help. Code. Learn.
•Created by lucifer7303 on 6/18/2024 in #java-help
Spiring bean scope related query
??
52 replies
JCHJava Community | Help. Code. Learn.
•Created by lucifer7303 on 6/18/2024 in #java-help
Spiring bean scope related query
arent both using the DI functionality of IOC principle
52 replies
JCHJava Community | Help. Code. Learn.
•Created by lucifer7303 on 6/18/2024 in #java-help
Spiring bean scope related query
so why does an AutoWired constructor work but not this
52 replies
JCHJava Community | Help. Code. Learn.
•Created by lucifer7303 on 6/18/2024 in #java-help
Spiring bean scope related query
or just injecting random ass object
52 replies
JCHJava Community | Help. Code. Learn.
•Created by lucifer7303 on 6/18/2024 in #java-help
Spiring bean scope related query
so when spring is injeccting it into the method , isnt it creating a bean of that class
52 replies
JCHJava Community | Help. Code. Learn.
•Created by lucifer7303 on 6/18/2024 in #java-help
Spiring bean scope related query
true true
52 replies
JCHJava Community | Help. Code. Learn.
•Created by lucifer7303 on 6/18/2024 in #java-help
Spiring bean scope related query
really new to Spring to bear with me 😬
52 replies
JCHJava Community | Help. Code. Learn.
•Created by lucifer7303 on 6/18/2024 in #java-help
Spiring bean scope related query
dont really get what you mean by that?
52 replies
JCHJava Community | Help. Code. Learn.
•Created by lucifer7303 on 6/18/2024 in #java-help
Spiring bean scope related query
and what if for some unknown reason i do want a consistent bean in a method without making that said class an attribute
52 replies
JCHJava Community | Help. Code. Learn.
•Created by lucifer7303 on 6/18/2024 in #java-help
Spiring bean scope related query
shouldnt it return the one it already has in the context
52 replies
JCHJava Community | Help. Code. Learn.
•Created by lucifer7303 on 6/18/2024 in #java-help
Spiring bean scope related query
but why is it even creating a new bean if it is sesssio scoped
52 replies
JCHJava Community | Help. Code. Learn.
•Created by lucifer7303 on 6/18/2024 in #java-help
Spiring bean scope related query
i did eventually went around it by making it a field of Controller
52 replies