SpringBoot集成SpringSecurity
1.pom.xml文件
xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
创新互联公司专注于企业营销型网站建设、网站重做改版、黄陵网站定制设计、自适应品牌网站建设、H5高端网站建设、成都做商城网站、集团公司官网建设、外贸营销网站建设、高端网站制作、响应式网页设计等建站业务,价格优惠性价比高,为黄陵等各大城市提供网站开发制作服务。
activiti.demo
activiti-demo
1.0-SNAPSHOT
war
activiti-demo
spring-activiti-demo
org.springframework.boot
spring-boot-starter-parent
2.0.6.RELEASE
UTF-8
UTF-8
1.8
org.springframework.boot
spring-boot-devtools
true
org.springframework.boot
spring-boot-starter-web
org.springframework.boot
spring-boot-starter-security
1.5.6.RELEASE
org.springframework.boot
spring-boot-starter-test
test
org.springframework.boot
spring-boot-maven-plugin
true
2.创建控制器
package com.springboot.demo.controller;
import org.springframework.web.bind.annotation.*;
/**
- @ClassName HelloController
- @Description TODO
- @Author yunshuodeng
- @Date 2019-05-05 15:41
- @Version 1.0**/
@RestController
br/>**/
@RestController
public class HelloController {@GetMapping
br/>@GetMapping
System.out.println("hello world");
return "hello world";
}
}
3.启动程序
package com.springboot.demo;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
/** - @ClassName ProviderApplication
- @Description 提供者主入口程序
- @Author yunshuodeng
- @Date 2019-01-21 10:34
- @Version 1.0**/
@SpringBootApplication
br/>**/
@SpringBootApplication
public static void main(String[] args){
SpringApplication.run(ProviderApplication.class,args);
}
}
网页标题:SpringBoot集成SpringSecurity
链接地址:http://ybzwz.com/article/gicoeo.html