Commit 5e2d5fa2 authored by 杨伊博's avatar 杨伊博

add port

parent 8868c67f
......@@ -15,7 +15,7 @@
</parent>
<properties>
<start-class>com.us.Application</start-class>
<start-class>com.us.example.Application</start-class>
<maven.compiler.target>1.8</maven.compiler.target>
<maven.compiler.source>1.8</maven.compiler.source>
</properties>
......
......@@ -10,6 +10,7 @@ import org.springframework.messaging.handler.annotation.MessageMapping;
import org.springframework.messaging.handler.annotation.SendTo;
import org.springframework.messaging.simp.SimpMessagingTemplate;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.CrossOrigin;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.ResponseBody;
......@@ -19,6 +20,7 @@ import java.security.Principal;
* Created by yangyibo on 16/12/29.
*
*/
@CrossOrigin
@Controller
public class WebSocketController {
@Autowired
......
server.port=8081
\ No newline at end of file
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment