File tree Expand file tree Collapse file tree
java/com/us/example/controller Expand file tree Collapse file tree Original file line number Diff line number Diff line change 1515 </parent >
1616
1717 <properties >
18- <start-class >com.us.Application</start-class >
18+ <start-class >com.us.example. Application</start-class >
1919 <maven .compiler.target>1.8</maven .compiler.target>
2020 <maven .compiler.source>1.8</maven .compiler.source>
2121 </properties >
Original file line number Diff line number Diff line change 1010import org .springframework .messaging .handler .annotation .SendTo ;
1111import org .springframework .messaging .simp .SimpMessagingTemplate ;
1212import org .springframework .stereotype .Controller ;
13+ import org .springframework .web .bind .annotation .CrossOrigin ;
1314import org .springframework .web .bind .annotation .RequestMapping ;
1415import org .springframework .web .bind .annotation .ResponseBody ;
1516
1920 * Created by yangyibo on 16/12/29.
2021 *
2122 */
23+ @ CrossOrigin
2224@ Controller
2325public class WebSocketController {
2426 @ Autowired
Original file line number Diff line number Diff line change 1+ server.port =8081
You can’t perform that action at this time.
0 commit comments