This commit is contained in:
이진석
2020-01-30 18:15:44 +09:00
parent 11c94ae8d6
commit 762410b8df
9 changed files with 42 additions and 4 deletions

View File

@@ -1,7 +1,7 @@
package com.example.vue.config;
import com.example.vue.security.UserDetailsAuthenticationProvider;
import com.example.vue.service.UserDetailsServiceImpl;
import com.example.vue.domain.user.UserDetailsServiceImpl;
import lombok.RequiredArgsConstructor;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;

View File

@@ -0,0 +1,13 @@
package com.example.vue.domain.article;
import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.Id;
@Entity
public class Article {
@Id @GeneratedValue
Long id;
}

View File

@@ -0,0 +1,4 @@
package com.example.vue.domain.article;
public class ArticleRepository {
}

View File

@@ -0,0 +1,7 @@
package com.example.vue.domain.article;
import org.springframework.stereotype.Service;
@Service
public class ArticleService {
}

View File

@@ -1,4 +1,4 @@
package com.example.vue.domain;
package com.example.vue.domain.user;
import javax.persistence.Entity;
import javax.persistence.GeneratedValue;

View File

@@ -1,4 +1,4 @@
package com.example.vue.service;
package com.example.vue.domain.user;
import org.springframework.security.core.userdetails.UserDetails;
import org.springframework.security.core.userdetails.UserDetailsService;

View File

@@ -0,0 +1,7 @@
package com.example.vue.domain.user;
import org.springframework.stereotype.Repository;
@Repository
public class UserRepository {
}

View File

@@ -0,0 +1,7 @@
package com.example.vue.domain.user;
import org.springframework.stereotype.Service;
@Service
public class UserService {
}

View File

@@ -1,6 +1,6 @@
package com.example.vue.security;
import com.example.vue.service.UserDetailsServiceImpl;
import com.example.vue.domain.user.UserDetailsServiceImpl;
import lombok.RequiredArgsConstructor;
import org.springframework.security.authentication.UsernamePasswordAuthenticationToken;
import org.springframework.security.authentication.dao.AbstractUserDetailsAuthenticationProvider;