Web App user service Test - up1/soa_group2 GitHub Wiki
Web App user service Test
Step 1 :: Start service at port 9001
$cd user-service
$mvn clean install && java -jar ./target/user-service.jar
Step 2 :: Start web application at port 9000
$cd user-service
$mvn spring-boot:run -Dserver.port=9000
Result
Fix Error
In Controller, add this line of code below.
@CrossOrigin(origins = "*") // this line only
public class UserController{}();
Result
Note: default Cross Origin Resource Sharing is not allowed to use cross port or domain.