Reputation: 1428
I have spend quite some time trying to figure out how do I import and use
MessageHandler
interface from spring framework
.
So here is what I do with my IntelliJ Idea IDE:
import org.springframework.messaging;
@EnableWs @Configuration public class WebServiceConfig extends WsConfigurerAdapter implements MessageHandler { ...
Furthermore, I have tried to setup my build.gradle script, in order to teach my IDE to use spring-messaging as follows:
compile("org.springframework.spring-messaging:spring-boot-starter-web-services")
or according to this:
compile("org.springframework.spring-messaging:4.0.0.RELEASE")
None of my desperate attempts was successful.. I can't even see relevant library among my External Libraries listed. Can anybody tell me what am I screwing up ?
Many thanks...
Upvotes: 1
Views: 4434
Reputation: 121272
Neither dependency coordinates you use properly.
Let's go to the Maven Search and copy & paste it from there!
compile 'org.springframework.boot:spring-boot-starter-web-services'
compile 'org.springframework:spring-messaging:4.3.10.RELEASE'
Now you have to reimport the Gradle project to your IDE to make it understand what you provide with the dependency management.
Upvotes: 2