spring - Difference between Autowired Environment and EnvironmentAware -
doing spring application multiple components (to access property deeper in code)
- the main 1 spring bootapplication
- a dispatcher component
- a main prototype component
- a client prototype component
- a server prototype component
- a main prototype component
- a dispatcher component
everything below main runnable better thread handling.
because client , server 1 created main 1 created dispatcher one, main , dispatcher applicationcontextaware.
now thing need access environment inside of client , server. first did via @autowired, noticed environmentaware.
what pro , cons of using them or isn't there of difference in case?
Comments
Post a Comment