Spring resource injection

  Spring developers often need to call a variety of resources including regular files, URLs, configuration files, the system environment variables, we can use Spring Expression Language (Spring-EL) achieve injection of resources.

  Spring annotations mainly used @Value injection of resources used Spring-EL @Value annotation of parameters.

 

Guess you like

Origin www.cnblogs.com/KenBaiCaiDeMiao/p/11589402.html