无法从Spring Boot重定向到Deeplink

时间:2019-04-04 14:02:14

标签: spring-boot ionic3

我想在执行spring boot功能后返回到我的离子页面,但出现404错误: 白标签错误页面:发生意外的类型(404)错误:/ api / paiementenligne / capmission_client://capmission.parent.ma/paiement

我在离子中的深层链接:

this.deepLinks.route({'/paiement': PaiementPage,}).subscribe(match => {
  console.log('Successfully matched route', match);
  }, nomatch => {
  console.error('Got a deeplink that didn\'t match', nomatch);
 });

我的spring boot功能:

@RestController
@RequestMapping("/api/paiementenligne")
public class ApiPaiementEnLigne {

    @RequestMapping(value="/ok-fails/mobile",method=RequestMethod.POST)
    public void paiementIsOkOrNotMobile(HttpServletRequest request,HttpServletResponse response) throws Exception {

        //some lignes of code
        response.sendRedirect("capmission_client://capmission.parent.ma/paiement");

    }
}

0 个答案:

没有答案