Tomcat 8 Examples: Missing Configuration Step

被刻印的时光 ゝ 提交于 2019-12-06 10:05:41

Figured it out. Newest versions of war-based webapps do component scans automatically. Mine was not, because I had included this:

Do not include if you have tomcat included!

    <dependency>
        <groupId>javax.websocket</groupId>
        <artifactId>javax.websocket-api</artifactId>
        <version>1.0</version>
    </dependency>

Reference on Websocket endpoints:

https://tyrus.java.net/documentation/1.3.3/index/deployment.html

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!