parent
246f291f67
commit
c05b4bcd71
|
@ -78,6 +78,7 @@ dependencies {
|
||||||
api("jakarta.validation:jakarta.validation-api")
|
api("jakarta.validation:jakarta.validation-api")
|
||||||
api("org.aspectj:aspectjweaver")
|
api("org.aspectj:aspectjweaver")
|
||||||
api("io.projectreactor.netty:reactor-netty-http")
|
api("io.projectreactor.netty:reactor-netty-http")
|
||||||
|
api("org.eclipse.jetty.websocket:jetty-websocket-jetty-api")
|
||||||
|
|
||||||
implementation(project(":spring-core-test"))
|
implementation(project(":spring-core-test"))
|
||||||
implementation("org.assertj:assertj-core")
|
implementation("org.assertj:assertj-core")
|
||||||
|
|
|
@ -14,6 +14,7 @@
|
||||||
* limitations under the License.
|
* limitations under the License.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
|
@file:Suppress("UNUSED_PARAMETER")
|
||||||
package org.springframework.docs.web.websocket.stomp.websocketstompdestinationseparator
|
package org.springframework.docs.web.websocket.stomp.websocketstompdestinationseparator
|
||||||
|
|
||||||
import org.springframework.messaging.handler.annotation.DestinationVariable
|
import org.springframework.messaging.handler.annotation.DestinationVariable
|
||||||
|
@ -26,7 +27,7 @@ import org.springframework.stereotype.Controller
|
||||||
class RedController {
|
class RedController {
|
||||||
|
|
||||||
@MessageMapping("blue.{green}")
|
@MessageMapping("blue.{green}")
|
||||||
fun handleGreen(@DestinationVariable green: String?) {
|
fun handleGreen(@DestinationVariable green: String) {
|
||||||
// ...
|
// ...
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
@ -14,6 +14,7 @@
|
||||||
* limitations under the License.
|
* limitations under the License.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
|
@file:Suppress("DEPRECATION")
|
||||||
package org.springframework.docs.web.websocket.stomp.websocketstomphandlebrokerrelayconfigure
|
package org.springframework.docs.web.websocket.stomp.websocketstomphandlebrokerrelayconfigure
|
||||||
|
|
||||||
import org.springframework.context.annotation.Configuration
|
import org.springframework.context.annotation.Configuration
|
||||||
|
|
|
@ -14,6 +14,7 @@
|
||||||
* limitations under the License.
|
* limitations under the License.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
|
@file:Suppress("UNUSED_VARIABLE")
|
||||||
package org.springframework.docs.web.websocket.stomp.websocketstompinterceptors
|
package org.springframework.docs.web.websocket.stomp.websocketstompinterceptors
|
||||||
|
|
||||||
import org.springframework.messaging.Message
|
import org.springframework.messaging.Message
|
||||||
|
|
|
@ -24,7 +24,6 @@ import org.springframework.web.socket.config.annotation.WebSocketMessageBrokerCo
|
||||||
import org.springframework.web.socket.server.jetty.JettyRequestUpgradeStrategy
|
import org.springframework.web.socket.server.jetty.JettyRequestUpgradeStrategy
|
||||||
import org.springframework.web.socket.server.support.DefaultHandshakeHandler
|
import org.springframework.web.socket.server.support.DefaultHandshakeHandler
|
||||||
import java.time.Duration
|
import java.time.Duration
|
||||||
import java.util.function.Consumer
|
|
||||||
|
|
||||||
// tag::snippet[]
|
// tag::snippet[]
|
||||||
@Configuration
|
@Configuration
|
||||||
|
|
Loading…
Reference in New Issue