Edit: to niestety nie koniec. Wczoraj to się kompilowało i działało tak jak na tutorialu, jednakże dziś - intellij wyrzuca błędy takie jak:
-org.xml.sax.SAXParseException; lineNumber: 4; columnNumber: 74; SchemaLocation: schemaLocation value = 'http://www.springframework.org/schema/beans/' must have even number of URI's.
-Exception in thread "main" org.springframework.beans.factory.xml.XmlBeanDefinitionStoreException: Line 4 in XML document from class path resource [konf.xml] is invalid; nested exception is org.xml.sax.SAXParseException; lineNumber: 4; columnNumber: 74; cvc-elt.1: Cannot find the declaration of element 'beans'.
-Caused by: org.xml.sax.SAXParseException; lineNumber: 4; columnNumber: 74; cvc-elt.1: Cannot find the declaration of element 'beans'
i około 3 inne, jednakże to co intellij wypisuje nie mieści się w oknie konsolowym.
Plik xml:
<?xml version="1.0" encoding="UTF-8"?>
<beans xmlns="http://www.springframework.org/schema/beans"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://www.springframework.org/schema/beans">
<bean id="mojLogger" class="LoggerImpl"></bean>
<bean id="repozytoriumUzytkownikow" class="UsersRepositoryImpl">
<property name="logger" ref="mojLogger"></property>
</bean>
</beans>
Bez spacji i entera na początku