GET http://localhost:8080/app/api/v1/products/1
Error: aborted
Request Headers
Content-Type: application/json
User-Agent: PostmanRuntime/7.29.2
Accept: */*
Cache-Control: no-cache
Postman-Token: f1f4a94f-fe62-4cfc-bb07-9681c0a3f321
Host: localhost:8080
Accept-Encoding: gzip, deflate, br
Connection: keep-alive
Content-Length: 9
В консоли такой стетрейс.... GET http://localhost:8080/app/api/v1/products/1
Error: aborted
Request Headers
Content-Type: application/json
User-Agent: PostmanRuntime/7.29.2
Accept: */*
Cache-Control: no-cache
Postman-Token: f1f4a94f-fe62-4cfc-bb07-9681c0a3f321
Host: localhost:8080
Accept-Encoding: gzip, deflate, br
Connection: keep-alive
Content-Length: 9
В консоли такой стетрейс.... @RestController
@RequestMapping("/api/v1/products")
public class ProductController {
@Autowired
private ProductService productService;
create table categories (
id bigserial primary key,
category_name varchar(255),
created_at timestamp default current_timestamp,
updated_at timestamp default current_timestamp
);
insert into categories (category_name)
values
('Milk');
create table if not exists products
(
id bigserial primary key,
category_id bigint not null references categories (id),
title varchar(255),
price int,
created_at timestamp default current_timestamp,
updated_at timestamp default current_timestamp
);
insert into products (category_id, title, price)
values
(1, 'Milk', 50);
возвращает could not get response
бд с продуктами подключенаController application.yaml