File tree Expand file tree Collapse file tree 3 files changed +1
-13
lines changed
src/main/java/ru/xpressed/javatemplatescoursework Expand file tree Collapse file tree 3 files changed +1
-13
lines changed Original file line number Diff line number Diff line change @@ -6,7 +6,7 @@ plugins {
66
77group = ' ru.xpressed'
88version = ' 0.0.1-SNAPSHOT'
9- sourceCompatibility = " 11 .0.15 "
9+ sourceCompatibility = " 18 .0.1 "
1010
1111configurations {
1212 compileOnly {
@@ -36,4 +36,3 @@ dependencies {
3636tasks. named(' test' ) {
3737 useJUnitPlatform()
3838}
39- targetCompatibility = JavaVersion . VERSION_1_9
Original file line number Diff line number Diff line change 44import org .springframework .context .annotation .Bean ;
55import org .springframework .context .annotation .Configuration ;
66import org .springframework .security .config .annotation .web .builders .HttpSecurity ;
7- import org .springframework .security .config .annotation .web .builders .WebSecurity ;
87import org .springframework .security .config .annotation .web .configuration .EnableWebSecurity ;
98import org .springframework .security .config .annotation .web .configuration .WebSecurityConfigurerAdapter ;
109import org .springframework .security .core .authority .SimpleGrantedAuthority ;
Original file line number Diff line number Diff line change @@ -30,16 +30,6 @@ public class Customer implements UserDetails {
3030 @ OneToMany (cascade = CascadeType .ALL , mappedBy = "customer" , fetch = FetchType .LAZY )
3131 public List <Order > orders = new ArrayList <>();
3232
33- @ Override
34- public String toString () {
35- return "Customer{" +
36- "username='" + username + '\'' +
37- ", password='" + password + '\'' +
38- ", repeated='" + repeated + '\'' +
39- ", orders=" + orders +
40- '}' ;
41- }
42-
4333 @ Override
4434 public Collection <? extends GrantedAuthority > getAuthorities () {
4535 return null ;
You can’t perform that action at this time.
0 commit comments