/
NikolayIvkin
/
tutorials1
Обзор
Документация
Войти
/
NikolayIvkin
/
tutorials1
Код
Запросы
0
Пакеты
0
Релизы
0
Аналитика
Безопасность
master
apache-httpclient4/src/main/resources/webSecurityConfig.xml
28 строк
1 KB
Dhawal Kapil
JAVA-15014 Renamed httpclient4 to apache-httpclient4 (#13516)
24 фев 2023, 10:26
24 фев 2023, 10:26
3f9b886
Код
Авторство
О чём код?
<?xml version="1.0" encoding="UTF-8"?> <beans:beans xmlns="http://www.springframework.org/schema/security" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:beans="http://www.springframework.org/schema/beans" xsi:schemaLocation=" http://www.springframework.org/schema/security http://www.springframework.org/schema/security/spring-security.xsd http://www.springframework.org/schema/beans http://www.springframework.org/schema/beans/spring-beans.xsd" > <http create-session="stateless" use-expressions="true"> <http-basic entry-point-ref="myBasicAuthenticationEntryPoint"/> </http> <authentication-manager> <authentication-provider> <user-service> <user name="user1" password="{noop}user1Pass" authorities="ROLE_USER"/> </user-service> </authentication-provider> </authentication-manager> <global-method-security pre-post-annotations="enabled"/> <beans:bean id="myBasicAuthenticationEntryPoint" class="com.baeldung.basic.MyBasicAuthenticationEntryPoint" /> </beans:beans>