无法解析导入 org.atmosphere.annotation.Broadcast

The import org.atmosphere.annotation.Broadcast cannot be resolved

虽然我在pom.xml

中添加了以下依赖
    <dependency>
               <groupId>org.atmosphere</groupId>
               <artifactId>atmosphere-runtime</artifactId>
               <version>2.3.1</version>
    </dependency>

i am getting the error in the following code:

import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;
import org.springframework.web.bind.annotation.ResponseBody;
import org.atmosphere.annotation.Broadcast;
import org.atmosphere.annotation.Suspend;

import java.io.IOException;

@Controller
@RequestMapping("/websocket")
public class ChatController {

             @Suspend
             @RequestMapping(value = "/suspend", method = RequestMethod.GET)
             @ResponseBody
             public String suspend() {
                 return "";
             }   

             @Broadcast(writeEntity = false)
             @RequestMapping(value = "/broadcast", method = RequestMethod.POST)
             @ResponseBody
             public String broadcast(String message) {
                  return "";//new Response(message.author, message.message);
             }   


}

帮我解决这个问题

在pom.xml中添加如下依赖后解决

<dependency> 
  <groupId>org.atmosphere</groupId> 
  <artifactId>atmosphere-annotations</artifactId>
  <version>2.3.1</version>
</dependency>