- Microservices version of this example - https://github.com/jinyoung/sw-modeling-example-msa
- download the git client: https://git-for-windows.github.io/
- lauch a terminal and enter
git clone https://github.com/jinyoung/sw-modeling-example.git
mvn spring-boot:run
if you don't have Apache Maven, download and intall Maven: https://blog.outsider.ne.kr/381
and go to http://localhost:8080 then you will see:
{
"_links" : {
"vehicle" : {
"href" : "http://localhost:8080/vehicle{?page,size,sort}",
"templated" : true
},
"customer" : {
"href" : "http://localhost:8080/customer{?page,size,sort}",
"templated" : true
},
"profile" : {
"href" : "http://localhost:8080/profile"
}
}
}
Adding a customer through POSTMAN Turn the METHOD as: POST and set the body as "raw" and "JSON(application/json)" and finally enter the body json value as:
{
"firstName": "장진영"
}
Test service through POSTMAN
var jsonData = JSON.parse(responseBody);
tests["첫번째 고객은 장진영이어야 합니다"] = jsonData._embedded.customer[0].firstName === "장진영";
tests["Response time is less than 100ms"] = responseTime < 100;
cd src/main/resources/static
npm install
npm run dev
To mashup components, go to http://rawgit.com/TheOpenCloudEngine/metaworks4/master/src/main/resources/static/mashup/test.html
and drag form or grid component to the canvas, and enter the name of class - com.autoinsurance.Customer
- https://github.com/TheOpenCloudEngine/micro-service-architecture-vuejs/wiki
- https://www.slideshare.net/pongsor/building-multi-tenancy-enterprise-applications
- login firstly and launch the Java Script console,
- get the value of 'localStorage["access_token"]' just type it in the console,
- you may get some string value from the console, copy it.
- paste the access_token value to the POSTMAN's header tab as key - 'access_token'
-
붉은색 오류: Setup SDK 상단 메뉴 클릭해서 jdk1.8잡아줌
-
maven import Changes -> yes
-
maven menu toolbar --> reimport 버튼
-
pom.xml
-
WebConfig.java 를 다시 받아 수정.
-
8080 충돌시 -> services.msc 실행 > 오라클 에이젠트 중지
- Class Not Found -> remove all the files under .m2/repository/**
- Repository Not Found -> remove the .m2/setting.xml