How to configure a bean in the Spring xml bean configuration file is optional optional

how to set bean is not required

  • messageSource this bean is not required, and the Spring container can be started when messageSource injection fails. Is there this option in Spring"s xml configuration file, or is there any other way to solve this problem? Thank you in advance!

    <property name="basename" value="classpath:i18n/messages" />
    <property name="defaultEncoding" value="UTF-8"/>
</bean>
Mar.07,2021

does not seem to have such a configuration. If not, there should be no problem as long as the class corresponding to bean exists

.
MySQL Query : SELECT * FROM `codeshelper`.`v9_news` WHERE status=99 AND catid='6' ORDER BY rand() LIMIT 5
MySQL Error : Disk full (/tmp/#sql-temptable-64f5-1b35707-2b7e7.MAI); waiting for someone to free some space... (errno: 28 "No space left on device")
MySQL Errno : 1021
Message : Disk full (/tmp/#sql-temptable-64f5-1b35707-2b7e7.MAI); waiting for someone to free some space... (errno: 28 "No space left on device")
Need Help?