Thay vì đọc;Bảo mật mùa xuân 3.0- Tùy chỉnh Hộp thoại xác thực cơ bản http
Tên người dùng và mật khẩu đang được yêu cầu bởi http://localhost:8080. Trang web cho biết: "Ứng dụng bảo mật mùa xuân"
Tôi muốn thay đổi lời nhắc hoặc ít nhất thay đổi nội dung "trang web nói". Có ai biết làm thế nào để làm điều này thông qua resources.xml?
Trong cấu hình Grails App Spring của tôi, phiên bản hiện tại của tôi như sau;
<?xml version="1.0" encoding="UTF-8"?>
<beans:beans xmlns="http://www.springframework.org/schema/security"
xmlns:beans="http://www.springframework.org/schema/beans"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://www.springframework.org/schema/beans http://www.springframework.org/schema/beans/spring-beans-3.0.xsd
http://www.springframework.org/schema/security http://www.springframework.org/schema/security/spring-security-3.0.xsd">
<http auto-config="true" use-expressions="true">
<http-basic/>
<intercept-url pattern="/**" access="isAuthenticated()" />
</http>
<authentication-manager alias="authenticationManager">
<authentication-provider>
<user-service>
<user name="admin" password="admin" authorities="ROLE_ADMIN"/>
</user-service>
</authentication-provider>
</authentication-manager>
</beans:beans>
Cheers đã cho tôi biết. – gav
tuyệt vời, chỉ là những gì tôi cần. Thanx. –