好的。這是固定的。對於每個同樣遇到這種情況的人來說......你必須設置Spring Profile「pulse.authentication.default」,否則它將不會加載AuthenticationManager Bean。
總體問題在於RowStore的文檔,它說這是可選的,而實際上它是必需的。
http://rowstore.docs.snappydata.io/docs/manage_guide/pulse/quickstart.html#topic_795C97B46B9843528961A094EE520782
它說,在步驟4),其配置的安全性是可選的時候,其實你必須通過一個Spring配置文件。此外,再次在「認證Pulse用戶」一節中,它表示這不是必需的。
爲了解決這個問題,我必須通過Spring Profile「pulse.authentication.default」來激活spring-security.xml中的Bean並正確部署pulse.war。
SnappyData pulse.war將來可能會使用「!pulse.authentication.custom」,它將始終加載默認的AuthenticationManager bean,只要未配置自定義的bean即可。
例如,變更爲未來,使之真正可選:
<beans:beans profile="!pulse.authentication.custom" >
<authentication-manager>
<authentication-provider>
<user-service>
<user name="admin" password="admin" authorities="ROLE_USER" />
</user-service>
</authentication-provider>
</authentication-manager>
</beans:beans>
傑森嗨,會得到一個答案給你儘快 – plambre