when adding this code, this error appears, I tried adding beans:beans to the tag, but then the same error appears, please help me solve this problem
<?xml version="1.0" encoding="UTF-8"?>
<beans xmlns:beans="http://www.springframework.org/schema/beans"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xmlns:context="http://www.springframework.org/schema/context"
xsi:schemaLocation="http://www.springframework.org/schema/beans
http://www.springframework.org/schema/beans/spring-beans.xsd
http://www.springframework.org/schema/context
http://www.springframework.org/schema/context/spring-context.xsd">
<bean id="testBean"
class="alishev.spring.demo.TestBean">
<constructor-arg value="Neil"/>
</bean>
</beans>
You are having
xmlns:beans="http://www.springframework.org/schema/beans"which means you need to prefixbeans:to all tags from that namespace.Remove the
:beansfromxmlns:beans="http://www.springframework.org/schema/beans"so your XML should be as follows