본문 바로가기

error...4

멀티 모듈 프로젝트 - No bean named 'entityManagerFactory' available No bean named 'entityManagerFactory' available 멀티 모듈로 구성을 하면서 해당 문제가 발생했다. 말 그대로 entityManagerFactory 의 Bean 을 사용할 수 없다는 것이다. moinda-core 패키지에서 JPA 의존성을 직접 사용하는 구조로 되어 있으며 moinda-api 패키지를 통해서 애플리케이션을 실행하는 구조이기 때문에 서버구동시에 moinda-core 패키지의 Entity 들을 전부 스캔하고 Bean 으로 등록을 해야한다. 애플리케이션 실행 패키지(moinda-api)의 클래스 @PropertySources({ @PropertySource("classpath:application-core.properties") }) @EntityScan("c.. 2022. 7. 13.
ngrok - Your account is limited to 1 simultaneous ngrok agent session. Jenkins 사용을 위해서 포트포워딩을 하려고 했을 떄 나온 에러 Your account is limited to 1 simultaneous ngrok agent session. Active ngrok agent sessions in region 'us': 해결방법은 다음과 같다. C:\Users\사용자이름\ngrok2 - 해당 경로에서 ngrok.yml 파일 삭제 2022. 4. 26.
travis Ci 테스트 중 에러.. Caused by: java.net.SocketTimeoutException + Permission Denied 우선 결론부터 말씀을 드리면 어느부분이 원인인지 잡아내질 못했다.. 입니다 travis 를 사용하기 위해서 가입 후 깃 레포지토리를 연동하였습니다. 이후 해당 프로젝트의 최상단에 travis.yml 파일을 생성하였습니다. language: java jdk: - openjdk8 branches: // 어느 브랜치가 푸시될 때 수행할지 결정 only: // 현재는 오직 master가 푸시될떄만 - master # Travis CI 서버의 Home cache: // 그레들을 통해 의존성을 받으면 디렉토리가 캐싱하여 같은 의존성은 다음배포시 // 받지않게 설정 directories: - '$HOME/.m2/repository' - '$HOME/.gradle' script: "./gradlew clean buil.. 2021. 6. 13.
MyBatis) org.apache.ibatis.binding.BindingException:Parameter 'count' not found. Available parameters are [arg1, arg0, param1, param2] - @Param 을 써라.. MyBatis를 이용한 SQL Mapper는 불러오는 메서드당 하나의 파라미터를 읽는다.. 이게 무슨 의미인가 하면 // ClothesMapper.. //추가 public Long insert(ClothesVO vo); //상세(목록) public ClothesVO read(Long cno); //수정 public boolean update(ClothesVO vo); //삭제 public boolean delete(Long cno); //전체 목록 public List getList(Criteria cri); // 조회수 증가 및 감소 public void updateViewCnt(@Param("cno")Long cno, @Param("count")int count); public int getTotal.. 2021. 3. 20.