0
我想在我的web應用程序中使用cometd,但我得到異常 未知提供者:cometdProvider < - cometd < - chat? 我已經添加如何使用cometd cometProvider?
<script src="bower_components/angular-cometd/angular-cometd.js"></script>
<script src="bower_components/angular-cometd/angular-cometd-reload.js"></script>
<script src="bower_components/cometd/cometd.js"></script>
<script src="bower_components/cometd/ReloadExtension.js"></script>
app.controller('chat', ['$scope', '$timeout', '$http','cometd', function($scope, $timeout, $http,cometd)
<dependency>
<groupId>org.cometd.javascript</groupId>
<artifactId>cometd-javascript-angular</artifactId>
<version>3.1.1</version>
<type>war</type>
</dependency>
<dependency>
<groupId>org.cometd.java</groupId>
<artifactId>cometd-java-oort</artifactId>
<version>3.1.1</version>
</dependency>
<dependency>
<groupId>org.cometd.java</groupId>
<artifactId>cometd-java-server</artifactId>
<version>3.1.1</version>
</dependency>
<dependency>
<groupId>org.cometd.java</groupId>
<artifactId>cometd-java-websocket-javax-server</artifactId>
<version>3.1.1</version>
</dependency>
<dependency>
<groupId>org.slf4j</groupId>
<artifactId>slf4j-log4j12</artifactId>
<version>1.7.22</version>
<scope>runtime</scope>
</dependency>
請告訴我如何解決?
我從同一位置下載了CometD。請閱讀更新的問題。 –
請通過運行CometD演示[如文檔中所述](https://docs.cometd.org/current/reference/#_installation_demos)查看正在運行的Angular 1.x CometD演示聊天。 – sbordet
是否必須具有keystore.jks文件?我們是否需要採取特殊措施來生成這個文件? –