spring security helloworld例子操作

這是一個簡單的helloworld 例子,導入就能運行,下面是下載地址:

http://download.csdn.net/detail/u013897204/9618709


運行例子

打開瀏覽器,輸入  http://localhost:8080/SpringSecurityHelloWorld/  就會顯示  Hello World!

打開瀏覽器,輸入  http://localhost:8080/SpringSecurityHelloWorld/welcome 就會顯示  Title : Hello World Spring Security Demo User Name : jason

打開瀏覽器,輸入  http://localhost:8080/SpringSecurityHelloWorld/dba  就會顯示  Title : Welcom to admin page User Name : jasonyao-dba

打開瀏覽器 ,輸入  http://localhost:8080/SpringSecurityHelloWorld/login 就會顯示  登陸框

打開瀏覽器,輸入   http://localhost:8080/SpringSecurityHelloWorld/admin  就會顯示  登陸框


這所有的輸入過濾操作都在src/main/java/web/controller/HelloController.java文件裏控制


發佈了24 篇原創文章 · 獲贊 4 · 訪問量 2萬+
發表評論
所有評論
還沒有人評論,想成為第一個評論的人麼? 請在上方評論欄輸入並且點擊發布.
相關文章