Conseguir resolver
tem que adicionar esse artefato
<dependency>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-starter-tomcat</artifactId>
<scope>provided</scope>
</dependency>
e modifiquei disso
@SpringBootApplication
public class MidiaApplication {
public static void main(String[] args) {
SpringApplication.run(MidiaApplication.class, args);
}
}
para isso;
@SpringBootApplication
public class MidiaApplication extends SpringBootServletInitializer {
public static void main(String[] args) {
SpringApplication.run(MidiaApplication.class, args);
}
@Override
protected SpringApplicationBuilder configure(SpringApplicationBuilder builder) {
return builder.sources(MidiaApplication.class);
}
}