如何使用spring boot和angular 2登录

时间:2017-03-08 09:16:53

标签: spring rest angular

我有一个在http:// localhost:5555上运行的前端应用程序,角度为2

另一方面,我有一个在http:// localhost:8080 /上运行spring boot的后端应用程序,它为我的angular 2应用程序提供REST Api。

http://localhost:5555/http://localhost:8080/发送请求也可以。

验证用户的最佳方式是什么,我读了很多文章,但我找不到解决方案。

1 个答案:

答案 0 :(得分:0)

您需要在控制器文件

中使用Singleton.hpp创建跨源