This document describes how to configure Spring Security for authentication and authorization in a web application. It defines a WebSecurityConfig class that configures HTTP security with roles like OWNER and MANAGER for access control. It also defines a UserDetailsManager service for loading users and a User entity class implementing UserDetails. Tests are shown for security configuration, login,
![Junitを使ったjavaのテスト入門](https://cdn-ak-scissors.b.st-hatena.com/image/square/0271d5831fe7fee4264b930ccb596d499713f1b7/height=288;version=1;width=512/https%3A%2F%2Fcdn.slidesharecdn.com%2Fss_thumbnails%2Fjunit-e3-82-92-e4-bd-bf-e3-81-a3-e3-81-9fjava-e3-81-ae-e3-83-86-e3-82-b9-e3-83-88-e5-85-a5-e9-96-80-130621235717-phpapp01-thumbnail.jpg%3Fwidth%3D640%26height%3D640%26fit%3Dbounds)