How to create and destroy session in Spring REST Webservice called from Mobile client

前端 未结 2 996
生来不讨喜
生来不讨喜 2021-02-15 12:43

I have Spring REST webserivce Now from a mobile client webservice is getting called. First, login method is called for log in succes or failure based on sent value userid and p

2条回答
  •  一向
    一向 (楼主)
    2021-02-15 13:14

    You need to integrate spring security in your project and make your rest calls via authentication verifier tokens.

    You may refer to the documentation :

    http://projects.spring.io/spring-security/

    Or this nice tutorial can jumpstart your implementation :

    http://www.networkedassets.com/configuring-spring-security-for-a-restful-web-services/

提交回复
热议问题