Skip to content

Commit

Permalink
[Refactor] 학교 디비 접속 실패
Browse files Browse the repository at this point in the history
  • Loading branch information
hen715 committed May 2, 2024
1 parent 0d97d9a commit a310140
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 6 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ public class OracleConfig {
private String username;
@Value("${schoolDbPassword}")
private String password;
@Bean(name = "oracleDataSource")
/*@Bean(name = "oracleDataSource")
@ConfigurationProperties(prefix = "school.datasource")
public DataSource secondDataSource() {
HikariConfig config = new HikariConfig();
Expand All @@ -44,5 +44,5 @@ public DataSource secondDataSource() {
@Autowired
public JdbcTemplate jdbcTemplate(@Qualifier("oracleDataSource")DataSource dataSource){
return new JdbcTemplate(dataSource);
}
}*/
}
Original file line number Diff line number Diff line change
Expand Up @@ -207,15 +207,15 @@ public ResponseEntity<ResponseDto<Boolean>> checkMail(@Valid@RequestBody EmailCh
return new ResponseEntity<>(new ResponseDto<>(memberService.checkNumbers(emailCheckDto),"가입 인증번호 일치확인 성공"),HttpStatus.OK);
}

@Operation(summary = "테스트용 api 사용 x ",description = "바디에 {학번(id),비밀번호(password}을 json 형식으로 보내주세요. 성공 시 인증번호 일치 여부가 {data:boolean} 형식으로 보내집니다.")
/*@Operation(summary = "테스트용 api 사용 x ",description = "바디에 {학번(id),비밀번호(password}을 json 형식으로 보내주세요. 성공 시 인증번호 일치 여부가 {data:boolean} 형식으로 보내집니다.")
@ApiResponses({
@ApiResponse(responseCode = "200",description = "가입 인증번호 일치 확인 성공",content = @Content(schema = @Schema(implementation = ResponseDto.class)))
,@ApiResponse(responseCode = "404",description = "만료된 이메일이거나, 인증 요청을 하지 않은 이메일입니다.",content = @Content(schema = @Schema(implementation = ResponseDto.class)))
})
@PostMapping("/login/school")
public ResponseEntity<ResponseDto<Boolean>> checkLogin(@Valid@RequestBody MemberLoginDto memberLoginDto) throws SQLException, ClassNotFoundException {;
return new ResponseEntity<>(new ResponseDto<>(schoolLoginRepository.loginCheck(memberLoginDto.getEmail(),memberLoginDto.getPassword()),"로그인 성공 여부 테스트"),HttpStatus.OK);
}
}*/


}
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@
@Slf4j
public class SchoolLoginRepository {

@Autowired
/*@Autowired
@Qualifier("oracleJdbc")
private JdbcTemplate jdbcTemplate;
Expand All @@ -28,5 +28,5 @@ public boolean loginCheck(String username, String password) {
log.info("데이터베이스 연결 오류 메시지 : {}",e.getMessage());
return false;
}
}
}*/
}

0 comments on commit a310140

Please sign in to comment.