[진행중]

This commit is contained in:
2025-08-11 15:08:31 +09:00
parent fcf150922e
commit 9468d19736
3 changed files with 17 additions and 1 deletions

View File

@@ -44,7 +44,7 @@ dependencies {
implementation 'org.springframework.boot:spring-boot-starter-validation' implementation 'org.springframework.boot:spring-boot-starter-validation'
// ModelMapper 추가 // ModelMapper 추가
implementation 'org.modelmapper:modelmapper:3.1.1' implementation 'org.modelmapper:modelmapper:3.0.0'
// MyBatis 추가 // MyBatis 추가
implementation 'org.mybatis.spring.boot:mybatis-spring-boot-starter:3.0.3' implementation 'org.mybatis.spring.boot:mybatis-spring-boot-starter:3.0.3'

View File

@@ -36,6 +36,10 @@ public class MemberController {
private final BCryptPasswordEncoder bCryptPasswordEncoder; private final BCryptPasswordEncoder bCryptPasswordEncoder;
@GetMapping("/join")
public ResponseEntity<String> createMember1() {
return ResponseEntity.status(HttpStatus.CREATED).body("test");
}
@PostMapping("/join") @PostMapping("/join")
public ResponseEntity<CreateMemberResponseDto> createMember(@RequestBody @Valid CreateMemberRequestDTO requestDto) { public ResponseEntity<CreateMemberResponseDto> createMember(@RequestBody @Valid CreateMemberRequestDTO requestDto) {

View File

@@ -1,8 +1,15 @@
package com.bio.bio_backend.global.config; package com.bio.bio_backend.global.config;
import org.modelmapper.ModelMapper;
import org.springframework.context.annotation.Bean; import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration; import org.springframework.context.annotation.Configuration;
import org.springframework.security.crypto.bcrypt.BCryptPasswordEncoder; 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 @Configuration
public class AppConfig { public class AppConfig {
@@ -11,4 +18,9 @@ public class AppConfig {
public BCryptPasswordEncoder bCryptPasswordEncoder() { public BCryptPasswordEncoder bCryptPasswordEncoder() {
return new BCryptPasswordEncoder(); return new BCryptPasswordEncoder();
} }
@Bean
public ModelMapper modelMapper() {
return new ModelMapper();
}
} }