depend-on用來表示一個Bean的實例化依靠另外一個Bean先實例化。
<
bean
id
=
"emailUtils"
class
=
"com.trinitesolutions.core.utils.EmailUtils"
depends-on
=
"originZoneRepository"
>
<
property
name
=
"jdbcTemplate"
ref
=
"jdbcTemplate"
/>
<
property
name
=
"velocityEngine"
ref
=
"velocityEngine"
/>
<
property
name
=
"freemarkerConfiguration"
ref
=
"freemarkerConfiguration"
/>
<
property
name
=
"originZoneService"
ref
=
"originZoneService"
/>
</
bean
>