I have Spring boot Rest api , which works fine
@RequestMapping("/api/get")
public PomData getPomData( ) throws IOException {
PomData pd=new PomData();
pd.setName("name");
pd.setVersion("version");
return pd;
}
I want to call this
getPomData() (@RequestMapping 'api/get')
via URL, From Another project.
I've added this to that another project's POM file
<dependency>
<groupId>RestApi</groupId>
<artifactId>RestApi</artifactId>
<version>1.0.0</version>
<systemPath>${project.basedir}/src/main/resources/RestApi.jar</systemPath>
</dependency>
ANd i'm trying to send request to url using ajax like this
$.ajax({url: "/api/get",success: function(result){
alert();
}});
but 404 PAGE NOT FOUND what To do?