404 Rest Api with springboot

I already have a couple of days in this and although I know they may see the title of the question repeated, the truth is that I have already tried several solutions that have worked for others but not me. The most likely thing is that it's really very silly and I have not seen it yet but I'm on the edge.

This is my pom.xml



4.0.0

com.paises

paises

0.0.1-SNAPSHOT

jar

paises



org.springframework.boot

spring-boot-starter-parent

2.1.1.RELEASE







UTF-8

UTF-8

1.8







org.springframework.boot

spring-boot-starter-data-jpa





org.springframework.boot

spring-boot-starter-jersey





org.springframework.boot

spring-boot-starter-test

test





org.springframework.restdocs

spring-restdocs-mockmvc

test





mysql

mysql-connector-java

5.1.44





io.springfox

springfox-swagger2

2.9.2





com.google.guava

guava

23.2-jre





org.apache.httpcomponents

httpclient

4.3.6





io.rest-assured

rest-assured

3.0.7

test











org.springframework.boot

spring-boot-maven-plugin



true











src/main/resources

true







This is my class Application

package ar.com.paises;

import org.springframework.boot.SpringApplication;

import org.springframework.boot.autoconfigure.SpringBootApplication;

import org.springframework.web.bind.annotation.RequestMapping;

import org.springframework.web.bind.annotation.RestController;

@SpringBootApplication

@RestController

public class PaisesApplication {

public static void main(String[] args) {

SpringApplication.run(PaisesApplication.class, args);

}

@RequestMapping("/")

String home() {

return "Hello World!";

}

}

And...

Read More »

By: StackOverFlow - 6 days ago

Related Posts