I managed to register the Amazon Servlet in a Springboot 2.xx Application like
Код: Выделить всё
@Bean
public ServletRegistrationBean registerServlet(Skill skillInstance) {
SkillServlet skillServlet = new SkillServlet(skillInstance);
return new ServletRegistrationBean(skillServlet, endpoint);
}
however, when I migrate to Springboot 3.xx I have a problem with Amazon SkillServlet deriving from javax.servlet.Servlet and Springboot 3.xx ServletRegistrationBean expecting the servlet to be a jakarta.servlet.Servlet. This problem already existed with the former Amazon Alexa implementation (Maven alexa-skills-kit), which forced me to stick to Springboot 2.xx, which also uses javax.servlet.Servlet and now it seems to be that the new Alexa ask SDK (Maven ask-sdk) still has the same problem. What is the sollution or am I doing something wrong? Sorry for my english
works with Springboot 2.xx, doesnt work with Springboot 3.xx
Источник:
https://stackoverflow.com/questions/781 ... pplication