Element 'bean' must be free character [children], because this type of content type is "only the elements."

<bean id="accountService" class ="com.itheima.service.impl.AccountServiceImpl">
        <constructor-arg name="name" value="王者"> </constructor-arg>
        <constructor-arg name="age" value="18"> </constructor-arg>
        //第三个是Data对象,通过配置一个日期对象获取
        <constructor-arg name="birthday" value="now"> </constructor-arg>


    </bean>

Solution:
In Xml file, comments can only be used

Guess you like

Origin blog.csdn.net/qq_39944559/article/details/94754295