ANGULARJS 2 HTTP TEST
Öncelikle AngularJS 2 ile http testi için github linkni paylaşalım. https://github.com/Gmotes/AngularJS2HttpTest . /AngularJS2HttpTest/src/main/webapp klasörü altında “npm install” komutunu çalıştırıyoruz. Maven projesini import edip devam ediyoruz. Pom.xml jersey-server 1.8 ve jersey-json 1.8 i kullanacağız. Dolayısıyla dependency olarak ekliyoruz. JerseyService @Path("/angularJS2") public class JerseyService { @GET @Path("/get") @Produces(MediaType.APPLICATION_JSON) public Student getStudentRecord(){ Student student = new Student(); student.setFirstName("Burak"); return student; } } Student public class Student { String firstName; public String getFirstName() { return firstName; } public void setFirstName(String firstName) { this.firstName = firstName; } } Module.ts import { NgModule } from '@angular/core'; import { Browse...