spring xml configurations:
<bean id="exampleBean" class="com.example.ExampleBean">
<!-- 通过 ref 属性注入另一个名为 'anotherBean' 的 Bean -->
<property name="someProperty" ref="anotherBean"/>
</bean>
<bean id="anotherBean" class="com.example.AnotherBean"/>
- ref means property injection.
there is a CLI named BeB you can use it to create a backend experss and mongodb project in one line try it 😁