Skip to content

Latest commit

 

History

History
 
 

ts-contacts-service

Folders and files

NameName
Last commit message
Last commit date

parent directory

..
 
 
 
 
 
 
 
 
rest url:
http://contacts-query-service:12339/welcome
return String:
"Welcome to [ Contacts Query Service ] !"

build:
mvn clean package

docker:
docker build -t my/ts-contacts-service .
docker run -p 12339:12339 --name contacts-query-service my/contacts-query-service

docker run -p 12347:12347 --name ts-contacts-service --link contacts-mongo:contacts-mongo --link ts-sso-service:ts-sso-service my/ts-contacts-service


!!!!!notice: please add following lines into /etc/hosts to simulate the network access:
127.0.0.1	contacts-query-service

    private VerifyResult verifySsoLogin(String loginToken){
        restTemplate = new RestTemplate();
        System.out.println("[ContactsService][VerifyLogin] Verifying....");
        VerifyResult tokenResult = restTemplate.getForObject(
                "http://ts-sso-travel.service:12349/verifyLoginToken/" + loginToken,
                     VerifyResult.class);
        return tokenResult;
    }