Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit fa66ec8

Browse files
Spring security 1
1 parent 76f4fec commit fa66ec8

File tree

3 files changed

+18
-0
lines changed

3 files changed

+18
-0
lines changed

‎pom.xml

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -40,6 +40,11 @@
4040
<artifactId>spring-boot-starter-data-jpa</artifactId>
4141
</dependency>
4242

43+
<dependency>
44+
<groupId>org.springframework.boot</groupId>
45+
<artifactId>spring-boot-starter-security</artifactId>
46+
</dependency>
47+
4348
<dependency>
4449
<groupId>org.postgresql</groupId>
4550
<artifactId>postgresql</artifactId>
Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
package com.naturalprogrammer.spring5tutorial.config;
2+
3+
import org.springframework.context.annotation.Configuration;
4+
import org.springframework.security.config.annotation.web.configuration.WebSecurityConfigurerAdapter;
5+
6+
@Configuration
7+
public class SecurityConfig extends WebSecurityConfigurerAdapter {
8+
9+
}

‎src/main/resources/application.properties

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -21,3 +21,7 @@ server.error.whitelabel.enabled: false
2121
application.admin.email: admin@example.com
2222
application.admin.password: some-pass
2323

24+
security.user.name: user@example.com
25+
security.user.password: password
26+
27+

0 commit comments

Comments
(0)

AltStyle によって変換されたページ (->オリジナル) /