estou fazendo a seguinte requisição : localhost:8082/api/cadastro/findCartaoAll, porém esta dando erro 404, que nao achou o endPoint. Segue o meu código
Alguém pode me ajudar ?
[code]
@EnableJpaRepositories({"br.com.xxxx.model", "com.card.api.entity"})
@EntityScan( basePackages = {"br.com.xxx.model","br.com.xxxx.proof.model"} )
@SpringBootApplication(scanBasePackages= {"com.card.api.repository"})
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);
}
}
Controller
@CrossOrigin(origins = "*")
@RestController
@RequestMapping("/api/cadastro")
public class CardResources {
@RequestMapping(value="findCartaoAll",method = RequestMethod.GET, produces=MediaType.APPLICATION_JSON_UTF8_VALUE)
public @ResponseBody List findCartaoAll(){
return null;///cartaoRepository.findAll();
}
POM
xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
4.0.0
org.springframework.boot
spring-boot-starter-parent
2.1.1.RELEASE
com.card
apicard
0.0.1-SNAPSHOT
ApiCard
Angular Rest SpringBoot
UTF-8
UTF-8
1.8
maven.azulinternet.release
xxxx Maven Repository
http://maven.azulinternet.s3-xxxxxxxxxxxxxxxxxx/release/
default
false
true
daily
maven.azulinternet.snapshot
Azul Maven Repository
http://maven.azulinternet.s3-website-us-xxxxxxxxxxxxxxxxxxxxxx
default
false
true
daily
Repositorio Autocom
Release
http://www.autocomsistemas.com.br:8081/nexus/content/repositories/autocom/
org.springframework.boot
spring-boot-starter-data-jpa
org.postgresql
postgresql
runtime
org.springframework.boot
spring-boot-starter
org.springframework.boot
spring-boot-starter-test
test
org.springframework.boot
spring-boot-starter-web
org.springframework.boot
spring-boot-starter-logging
org.springframework.boot
spring-boot-devtools
runtime
org.springframework.boot
spring-boot-starter-test
test
org.springframework.boot
spring-boot-starter-actuator
io.springfox
springfox-swagger2
2.6.1
io.springfox
springfox-swagger-ui
2.6.1
org.springframework.boot
spring-boot-starter-tomcat
provided
br.com.xxxxxxnet
proof-filter
0.35.7
br.com.dcompany
centralweb-model
0.4
apicard
org.springframework.boot
spring-boot-maven-plugin
war