Spring/기타

    [Spring boot] swagger 기본 설정

    [Spring boot] swagger 기본 설정

    build.gradle dependencies에 다음 추가 dependencies { ... // swagger ui implementation 'io.springfox:springfox-boot-starter:3.0.0' implementation 'io.springfox:springfox-swagger-ui:3.0.0' } SwaggerConfig.java package com.example.simpleBoard; import org.springframework.context.annotation.Bean; import org.springframework.context.annotation.Configuration; import springfox.documentation.builders.ApiInfoBu..

    [JPA/hibernate] Parameter value [\] did not match expected type [~] 오류 해결방법

    [JPA/hibernate] Parameter value [\] did not match expected type [~] 오류 해결방법

    JPA 프로젝트에서 findByItemContaining 등 sql에서의 like 구문 실행 시 같은 method를 두 번 실행하게 되면 오류가 발생하는 상황이 있다. https://github.com/spring-projects/spring-data-jpa/issues/2472 Issue with spring-data "startingWith" and hibernate 5.6.7: Parameter value [\] did not match expected type [java.lang.String (n/ Hello, I am trying to fetch some entity using a “find all by property starting with” query which amount to a Cri..

    [Spring boot] mybatis 설정 sqlsession 관련 설정이 필요없는 이유

    http://mybatis.org/spring-boot-starter/mybatis-spring-boot-autoconfigure mybatis-spring-boot-autoconfigure – Introduction Introduction What is MyBatis-Spring-Boot-Starter? The MyBatis-Spring-Boot-Starter help you build quickly MyBatis applications on top of the Spring Boot. By using this module you will achieve: Build standalone applications Reduce the boilerplate to almost z mybatis.org 위 링크의 Q..

    Error executing DDL 오류 해결방법

    Error executing DDL 오류 해결방법

    스프링부트와 aws로 혼자 구현하는 웹서비스를 진행하는 중 p.219에서 해결되는 MockMvc 설정 문제를 진행하던 중, MockMvc와 별개로 테이블이 생성되지 않는 상황이 발생했다. h2와 hibernate가 계속 업데이트 되며 발생한 일이거나 내가 뭔가 잘못 설정하여 일어난 일이겠지만 일단 테이블이 생성되지 않는다는 점을 참고하여 jdbc-url을 테스트용 application.yml 파일에 추가하였고 그 후 이 문제를 해결한 상황이다. 밑은 수정 후의 yml 파일 내용이다. spring: jpa: show_sql: true properties: hibernate: dialect: org.hibernate.dialect.MySQL57Dialect datasource: hikari: jdbc-url..