estou rodando minha aplicação TomCatEmbeed e funciona normalmente:
localhost:8082/api/cadastro/findCartaoAll,
Gerei o war da minha aplicação e fiz um deploy no servidor TomCat
localhost:8080/apicard/api/cadastro/findCartaoAll
Porém ele não acha a minha requisição, dando erro 404.
Segue abaixo o Pom e meu main do Spring Boot
POM
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-starter-parent</artifactId>
<version>2.1.1.RELEASE</version>
<relativePath /> <!-- lookup parent from repository -->
</parent>
<groupId>com.card</groupId>
<artifactId>apicard</artifactId>
<version>0.0.1-SNAPSHOT</version>
<name>ApiCard</name>
<description>Angular Rest SpringBoot</description>
<properties>
<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
<project.reporting.outputEncoding>UTF-8</project.reporting.outputEncoding>
<java.version>1.8</java.version>
</properties>
,
<build>
<finalName>apicard</finalName>
<plugins>
<plugin>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-maven-plugin</artifactId>
</plugin>
</plugins>
</build>
<packaging>war</packaging>
Main
@EnableJpaRepositories({“com.card.api.repository”})
@EntityScan( basePackages = {“br.com.xxxxxxxxxx.model”,“br.com.yyyyyyy.model”, “com.card.api.entity”} )
@SpringBootApplication
public class CardApplication extends SpringBootServletInitializer{
@Override
protected SpringApplicationBuilder configure(
SpringApplicationBuilder builder) {
return builder.sources(CardApplication.class);
}
public static void main(String[] args) {
SpringApplication.run(CardApplication.class, args);
}
}
Alguém pode me dar uma luz ???