春季安全3.0.5拋出以下警告在EclipseSpring Security UserMap已被棄用,如何使用plain map?以下配置</p> <p><code>Class 'org.springframework.security.core.userdetails.memory.UserMap' is marked deprecated</code></p> <p>:
<security:authentication-manager>
<security:authentication-provider>
<security:user-service>
<security:user name="john" password="john"
authorities="ROLE_USER" />
<security:user name="admin" password="admin"
authorities="ROLE_USER, ROLE_ADMIN" />
<security:user name="system" password="system"
authorities="ROLE_USER, ROLE_ADMIN" />
<security:user name="guest" password="guest"
authorities="ROLE_GUEST" />
</security:user-service>
</security:authentication-provider>
</security:authentication-manager>
的Javadocs說,只是用一個簡單的圖來代替。但我不確定他們的意思是什麼,平原地圖在哪裏?我有點被「幫助」安全命名空間提供揭去...
您能告訴我們您在spring-security xml配置中提供了什麼'schemaLocation'(位於文件的頂部)。 – Alex