728x90
728x90
문제점
H2에서 table을 생성하기 위해 create 문을 작성하고 실행을 했더니
Sorry, remote connections ('webAllowOthers') are disabled on this server. 와 같은 에러가 발생했다.
해결방안
terminal에서 H2를 실행할 때,
h2 -webAllowOthers을 입력하고 실행해 줘야 위와 같은 에러가 뜨지 않는다.
또한, 내 mac은 가끔 brew 명령어가 먹지 않는데 이 때는,
eval $(/opt/homebrew/bin/brew shellenv)를 입력해주면 된다.
이렇게 하면 H2가 문제없이 작동할 것이다.
728x90
728x90
'Spring' 카테고리의 다른 글
@JsonIgnore 이란? (0) | 2023.05.08 |
---|---|
Postman에서 Token 값 저장하기 (1) | 2023.05.08 |
[Spring boot 에러] Cannot resolve taglib with uri http://java.sun.com/jsp/jstl/core 에러 해결 방법 (0) | 2023.05.08 |
[Spring boot 에러] Cannot resolve symbol 'EnableWebSecurity' 에러 해결 방법 (0) | 2023.05.08 |
엔티티 매핑(Entity Mapping) (0) | 2023.05.07 |