Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
村雨遥
java-learning-demos
提交
398b2800
J
java-learning-demos
项目概览
村雨遥
/
java-learning-demos
上一次同步 1 年多
通知
85
Star
3
Fork
1
代码
文件
提交
分支
Tags
贡献者
分支图
Diff
Issue
0
列表
看板
标记
里程碑
合并请求
0
DevOps
流水线
流水线任务
计划
Wiki
0
Wiki
分析
仓库
DevOps
项目成员
Pages
J
java-learning-demos
项目概览
项目概览
详情
发布
仓库
仓库
文件
提交
分支
标签
贡献者
分支图
比较
Issue
0
Issue
0
列表
看板
标记
里程碑
合并请求
0
合并请求
0
Pages
DevOps
DevOps
流水线
流水线任务
计划
分析
分析
仓库分析
DevOps
Wiki
0
Wiki
成员
成员
收起侧边栏
关闭侧边栏
动态
分支图
创建新Issue
流水线任务
提交
Issue看板
前往新版Gitcode,体验更适合开发者的 AI 搜索 >>
提交
398b2800
编写于
6月 04, 2022
作者:
村雨遥
🎧
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
🎲
security
上级
0a9f1951
变更
5
隐藏空白更改
内联
并排
Showing
5 changed file
with
127 addition
and
0 deletion
+127
-0
springboot-security-demo/pom.xml
springboot-security-demo/pom.xml
+71
-0
springboot-security-demo/src/main/java/site/cunyu1943/springbootsecuritydemo/SpringbootSecurityDemoApplication.java
...ngbootsecuritydemo/SpringbootSecurityDemoApplication.java
+13
-0
springboot-security-demo/src/main/java/site/cunyu1943/springbootsecuritydemo/controller/HelloController.java
...43/springbootsecuritydemo/controller/HelloController.java
+25
-0
springboot-security-demo/src/main/resources/application.yml
springboot-security-demo/src/main/resources/application.yml
+5
-0
springboot-security-demo/src/test/java/site/cunyu1943/springbootsecuritydemo/SpringbootSecurityDemoApplicationTests.java
...tsecuritydemo/SpringbootSecurityDemoApplicationTests.java
+13
-0
未找到文件。
springboot-security-demo/pom.xml
0 → 100644
浏览文件 @
398b2800
<?xml version="1.0" encoding="UTF-8"?>
<project
xmlns=
"http://maven.apache.org/POM/4.0.0"
xmlns:xsi=
"http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation=
"http://maven.apache.org/POM/4.0.0 https://maven.apache.org/xsd/maven-4.0.0.xsd"
>
<modelVersion>
4.0.0
</modelVersion>
<parent>
<groupId>
org.springframework.boot
</groupId>
<artifactId>
spring-boot-starter-parent
</artifactId>
<version>
2.6.8
</version>
<relativePath/>
<!-- lookup parent from repository -->
</parent>
<groupId>
site.cunyu1943
</groupId>
<artifactId>
springboot-security-demo
</artifactId>
<version>
0.0.1-SNAPSHOT
</version>
<name>
springboot-security-demo
</name>
<description>
springboot-security-demo
</description>
<properties>
<java.version>
11
</java.version>
</properties>
<dependencies>
<dependency>
<groupId>
org.springframework.boot
</groupId>
<artifactId>
spring-boot-starter-security
</artifactId>
</dependency>
<dependency>
<groupId>
org.springframework.boot
</groupId>
<artifactId>
spring-boot-starter-thymeleaf
</artifactId>
</dependency>
<dependency>
<groupId>
org.springframework.boot
</groupId>
<artifactId>
spring-boot-starter-web
</artifactId>
</dependency>
<dependency>
<groupId>
org.thymeleaf.extras
</groupId>
<artifactId>
thymeleaf-extras-springsecurity5
</artifactId>
</dependency>
<dependency>
<groupId>
org.projectlombok
</groupId>
<artifactId>
lombok
</artifactId>
<optional>
true
</optional>
</dependency>
<dependency>
<groupId>
org.springframework.boot
</groupId>
<artifactId>
spring-boot-starter-test
</artifactId>
<scope>
test
</scope>
</dependency>
<dependency>
<groupId>
org.springframework.security
</groupId>
<artifactId>
spring-security-test
</artifactId>
<scope>
test
</scope>
</dependency>
</dependencies>
<build>
<plugins>
<plugin>
<groupId>
org.springframework.boot
</groupId>
<artifactId>
spring-boot-maven-plugin
</artifactId>
<configuration>
<excludes>
<exclude>
<groupId>
org.projectlombok
</groupId>
<artifactId>
lombok
</artifactId>
</exclude>
</excludes>
</configuration>
</plugin>
</plugins>
</build>
</project>
springboot-security-demo/src/main/java/site/cunyu1943/springbootsecuritydemo/SpringbootSecurityDemoApplication.java
0 → 100644
浏览文件 @
398b2800
package
site.cunyu1943.springbootsecuritydemo
;
import
org.springframework.boot.SpringApplication
;
import
org.springframework.boot.autoconfigure.SpringBootApplication
;
@SpringBootApplication
public
class
SpringbootSecurityDemoApplication
{
public
static
void
main
(
String
[]
args
)
{
SpringApplication
.
run
(
SpringbootSecurityDemoApplication
.
class
,
args
);
}
}
springboot-security-demo/src/main/java/site/cunyu1943/springbootsecuritydemo/controller/HelloController.java
0 → 100644
浏览文件 @
398b2800
package
site.cunyu1943.springbootsecuritydemo.controller
;
import
org.springframework.web.bind.annotation.GetMapping
;
import
org.springframework.web.bind.annotation.RestController
;
/**
* Created with IntelliJ IDEA.
*
* @Package : site.cunyu1943.springbootsecuritydemo.controller
* @ClassName : HelloController.java
* @CreateTime : 2022/6/4 21:59
* @Version : 1.0
* @Author : 村雨遥
* @Email : 747731461@qq.com
* @公众号 : 村雨遥
* @Website : https://cunyu1943.github.io/JavaPark
* @Description :
*/
@RestController
public
class
HelloController
{
@GetMapping
(
value
=
"/hello"
)
public
String
hello
()
{
return
"Hello World!"
;
}
}
springboot-security-demo/src/main/resources/application.yml
0 → 100644
浏览文件 @
398b2800
spring
:
security
:
user
:
name
:
cunyu1943
password
:
cunyu1943@
springboot-security-demo/src/test/java/site/cunyu1943/springbootsecuritydemo/SpringbootSecurityDemoApplicationTests.java
0 → 100644
浏览文件 @
398b2800
package
site.cunyu1943.springbootsecuritydemo
;
import
org.junit.jupiter.api.Test
;
import
org.springframework.boot.test.context.SpringBootTest
;
@SpringBootTest
class
SpringbootSecurityDemoApplicationTests
{
@Test
void
contextLoads
()
{
}
}
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录