3

为什么我收到此错误:

 javax.servlet.ServletException: com.vaadin.server.ServiceException: java.lang.IllegalStateException: Push is not available. See previous log messages for more information.
com.vaadin.server.VaadinServlet.service(VaadinServlet.java:240)
javax.servlet.http.HttpServlet.service(HttpServlet.java:722)

当我使用 Push 注释时:

@Push(PushMode.MANUAL)
public class KopivaadincomponentsUI extends UI {

@Override
protected void init(VaadinRequest request) {...

   }
}
4

1 回答 1

4
       <dependency>
            <groupId>com.vaadin</groupId>
            <artifactId>vaadin-push</artifactId>
            <version>${com.vaadin.version}</version>
        </dependency>

尝试将此依赖项添加到您的 .pom 文件中。

于 2014-12-30T09:12:09.630 回答