一個簡單的請求在加入spring security之前的樣子, 在瀏覽器中輸入地址就可以直接訪問
<!--引入spring security依賴--><dependency><groupId>org.springframework.boot</groupId><artifactId>spring-boot-starter-security</artifactId></dependency>
導入spring security依賴之后所有的接口都會受到保護, 需要你進行登錄才能正常訪問
運行時會給你跳轉到一個登錄界面使用用戶名user 密碼為控制臺上輸出的password就可以登陸并跳轉到hello界面