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

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

Popular posts from this blog

python Tkinter Capturing keyboard events save as one single string -

android - InAppBilling registering BroadcastReceiver in AndroidManifest -

javascript - Z-index in d3.js -