kmbin92_2025081101 #1

Merged
sohot8653 merged 9 commits from kmbin92_2025081101 into main 2025-08-13 10:42:57 +09:00
24 changed files with 5092 additions and 71 deletions
Showing only changes of commit 9468d19736 - Show all commits

View File

@@ -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'

View File

@@ -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) {

View File

@@ -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();
}
}