[진행중]
This commit is contained in:
@@ -44,7 +44,7 @@ dependencies {
|
||||
implementation 'org.springframework.boot:spring-boot-starter-validation'
|
||||
|
||||
// ModelMapper 추가
|
||||
implementation 'org.modelmapper:modelmapper:3.1.1'
|
||||
implementation 'org.modelmapper:modelmapper:3.0.0'
|
||||
|
||||
// MyBatis 추가
|
||||
implementation 'org.mybatis.spring.boot:mybatis-spring-boot-starter:3.0.3'
|
||||
|
@@ -36,6 +36,10 @@ public class MemberController {
|
||||
private final BCryptPasswordEncoder bCryptPasswordEncoder;
|
||||
|
||||
|
||||
@GetMapping("/join")
|
||||
public ResponseEntity<String> createMember1() {
|
||||
return ResponseEntity.status(HttpStatus.CREATED).body("test");
|
||||
}
|
||||
|
||||
@PostMapping("/join")
|
||||
public ResponseEntity<CreateMemberResponseDto> createMember(@RequestBody @Valid CreateMemberRequestDTO requestDto) {
|
||||
|
@@ -1,8 +1,15 @@
|
||||
package com.bio.bio_backend.global.config;
|
||||
|
||||
import org.modelmapper.ModelMapper;
|
||||
import org.springframework.context.annotation.Bean;
|
||||
import org.springframework.context.annotation.Configuration;
|
||||
import org.springframework.security.crypto.bcrypt.BCryptPasswordEncoder;
|
||||
import org.springframework.web.cors.CorsConfiguration;
|
||||
|
||||
import org.springframework.context.annotation.Bean;
|
||||
import org.springframework.web.cors.CorsConfiguration;
|
||||
import org.springframework.web.cors.CorsConfigurationSource;
|
||||
import org.springframework.web.cors.UrlBasedCorsConfigurationSource;
|
||||
|
||||
@Configuration
|
||||
public class AppConfig {
|
||||
@@ -11,4 +18,9 @@ public class AppConfig {
|
||||
public BCryptPasswordEncoder bCryptPasswordEncoder() {
|
||||
return new BCryptPasswordEncoder();
|
||||
}
|
||||
|
||||
@Bean
|
||||
public ModelMapper modelMapper() {
|
||||
return new ModelMapper();
|
||||
}
|
||||
}
|
Reference in New Issue
Block a user