java neo4j示例“MyRestaurantSocial”错误
我从github下载了neo4j示例“myrestaurants social”,然后将其导入Eclipse4.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>
我认为有些类没有这些错误描述中的方法
如何解决这些错误
在构建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.
这是我的应用程序上下文安全性。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">
共 (0) 个答案