'How to properly connect to my VM to get json?
I'm new in Spring and I have a problem when I run Spring WEB in VM.
Test on local computer works:
I run app mvn spring-boot:run -Dspring-boot.run.profiles=test and check request:
curl -X POST ``http://localhost:8080/api/v1/dictionary/yandex-alice-skill`` -H "Content-Type: application/json" -d "{}"
and get {"response":{"text":"Hi! I can help you to learn words.","end_session":false},"version":"1.0"}
When I run app in VM and try to get json in my VM everything works fine too: 
BUT when I try to get json in my local computer I get 404

Page have 404, but why I can't get json? How to properly connect to my virtual machine?

Controller:
@RestController
@Slf4j
@RequestMapping("/api/v1/dictionary/yandex-alice-skill")
@RequiredArgsConstructor
public class DictionaryController {
@Autowired
private DictionaryService dictionaryService;
@PostMapping
public @ResponseBody talkYandexAlice(
@RequestBody YandexAliceRequest request) {
return dictionaryService.talkYandexAlice(request);
}
}
I want to get json, but I get HTML from server.
Sources
This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.
Source: Stack Overflow
| Solution | Source |
|---|
