user-service h2-console연결이 안됨
1247
작성한 질문수 35

위 사진을 보면 user-service가 분명 떠잇어서 들어가서... 설정한 데로 접속을 하는데 안되는겁니다...
근데 왜 안되는지 모르겟네요...
user-service project에 application.yml 파일 설정도 동일하게 해준거 같은데
애초에 비밀번호가 맞고 안맞고를 떠나서 not found 가 떠버리는데... 무엇을 놓친지 모르겟습니다.
server:
port: 0
spring:
config:
import:
- classpath:/bootstrap.yml
application:
name: user-service
rabbitmq:
host: 127.0.0.1
port: 5672
username: guest
password: guest
h2:
console:
enabled: true
settings:
web-allow-others: true
path: /h2-console
datasource:
driver-class-name: org.h2.Driver
url: jdbc:h2:mem:testdb
username: sa
password:
jpa:
database-platform: org.hibernate.dialect.H2Dialect
open-in-view: false
hibernate:
ddl-auto: create-drop
properties:
hibernate:
# show_sql: true
format_sql: true
eureka:
instance:
instance-id: ${spring.application.name}:${spring.application.instance_id:${random.value}}
client:
register-with-eureka: true
fetch-registry: true
service-url:
defaultZone: http://127.0.0.1:8761/eureka
greeting:
message: Welcome to the Simple E-commerce.
logging:
level:
com.example.userservice.client: DEBUG
management:
endpoints:
web:
exposure:
include: refresh, health, beans, busrefresh
#token:
# expiration_time: 86400000
# secret: user_token
답변 1
1
안녕하세요, 이도원입니다.
1) pom.xml 파일에 설정하신 h2의 버전을 확인해 보시기 바랍니다. 강의에 사용한 버전 h2 1.3.176이었습니다.
2) h2를 최신거로 사용하신 경우에는 아래의 설정과 pom.xml 파일에 내용을 확인하시고 추가해 보시기 바랍니다.
spring:
h2:
console:
enabled: true
settings:
web-allow-others: true
path: /h2-console
datasource:
driver-class-name: org.h2.Driver
url: jdbc:h2:mem:testdb
username: sa
password:
generate-unique-name: false
name: testdb<dependency>
<groupId>com.h2database</groupId>
<artifactId>h2</artifactId>
</dependency>
<dependency>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-starter-data-jpa</artifactId>
</dependency>감사합니다.
장애 격리 관련해서 궁금한 부분이 있어요
0
63
2
Inner class로 Config를 지정하는 이유
0
64
2
service-discovery 프로세스 가동 이유
0
86
2
rabbitmq에 configservice 연결에 대해 질문있습니다.
0
112
1
kafka 업데이트 강의 듣고 시포요
0
186
2
강의 교안
0
160
2
마이크로서비스간 통신 시, 인증 처리
0
172
2
api gateway 에서 인증 처리
0
115
1
섹션 19 질문드립니다
0
136
2
강의 자료 업데이트
0
152
2
부하분산 강의 섹션
0
103
1
강의자료는 어디에서?
0
140
2
강의 자료는 어디서 다운 받을 수 있나요?
0
184
2
전체 사용자 조회시 오류
0
95
1
혹시 pk 외 별도의 id 를 부여한 이유가 있을까요 ??
0
178
2
학습 방향
0
153
2
카프카 커넥터 사용 목적 문의
0
140
2
kafka 강의
0
168
2
서비스 디스커버리 종류
0
131
2
강의 자료에 대해서 궁금해요
0
183
2
GlobalFilter, LoggingFilter가 동작하지 않습니다.
0
151
2
Kafka Source Connect 버전 에러
0
145
2
소스커넥터는 사용안한 거 맞죠?
0
137
2
강의자료 업데이트 문의
0
132
2





