我从github下载了neo4j示例“myrestaurants-social”,然后将其导入Eclipse 4.4.0。 但是这个项目有23个错误:
The method getPersistentState() is undefined for the type Recommendation<p>
The method getPersistentState() is undefined for the type UserAccount<br>
The method getPersistentState() is undefined for the type UserAccount<br>
The method getRelationshipId() is undefined for the type Recommendation<br>
The method getRelationshipId() is undefined for the type Recommendation<br>
The method getRelationshipId() is undefined for the type Recommendation<br>
The method getRelationshipId() is undefined for the type Recommendation<br>
The method getRelationshipId() is undefined for the type Recommendation<br>
The method getRelationshipId() is undefined for the type Recommendation<br>
The method hasPersistentState() is undefined for the type Recommendation<br>
The method persist() is undefined for the type Restaurant<br>
The method persist() is undefined for the type Restaurant<br>
The method persist() is undefined for the type UserAccount<br>
The method persist() is undefined for the type UserAccount<br>
The method persist() is undefined for the type UserAccount<br>
The method persist() is undefined for the type UserAccount<br>
The method persist() is undefined for the type UserAccount<br>
The method persist() is undefined for the type UserAccount<br>
The method persist() is undefined for the type UserAccount<br>
The method persist() is undefined for the type UserAccount<br>
The method persist() is undefined for the type UserAccount<br>
The method relateTo(Restaurant, Class<Recommendation>, String) is undefined for the type UserAccount<br>
The method relateTo(UserAccount, String) is undefined for the type UserAccount<br>
我认为某些类没有ERRORS描述中的这些方法。
我如何解决这些错误?
构建maven时,我发现错误。
org.springframework.beans.factory.parsing.BeanDefinitionParsingException : Configuration problem: You cannot use a spring-security-2.0.xsd or spring-security-3.0.xsd schema with Spring Security 3.1. Please update your schema declarations to the 3.1 schema.
这是我的application-context-security.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"
xmlns:context="http://www.springframework.org/schema/context"
xmlns:security="http://www.springframework.org/schema/security"
xsi:schemaLocation="
http://www.springframework.org/schema/context http://www.springframework.org/schema/context/spring-context.xsd
http://www.springframework.org/schema/beans http://www.springframework.org/schema/beans/spring-beans.xsd
http://www.springframework.org/schema/security http://www.springframework.org/schema/security/spring-security.xsd">