Tag: 弹簧引导

使用Electron来使用RESTful API

在显示我的Electron应用程序的任何窗口(使用Electron应用程序作为客户端)之前,我想为RESTful API提出一些请求(GET,POST,PUT …)。 是否有可能使用ClientRequest来做到这一点? 会有人有一个例子吗? 非常感谢你。

带有Spring Boot Web服务的Angular Node JS

我有几个Web服务,我需要在Apache Tomcat上运行的同一个Spring Boot项目下为Angular 4创buildUI。 不过,我已经使用NPM和节点js服务器分别创build了UI,将我的spring引导项目中的Angular页面集成起来,并调用内部Web服务或将它保留在不同的服务器上,并使用HTTP调用来调用服务节点Js服务器为Angular?

与前端和后端的错误沟通(Java – Angular)

我尝试使用Java / Spring Boot后端来交stream我的Angular Frontend。 但terminal显示我这个错误: [HPM]尝试从localhost:4500代理请求/ api / dados时发生错误:http:/ localhost:8080(ECONNREFUSED)( https://nodejs.org/api/errors.html#errors_common_system_errors ) 这是我的exemple.service.ts(Angular)代码。 在这里我请求数据: import {Injectable} from "@angular/core"; import {Http, Response} from "@angular/http"; import 'rxjs/Rx'; @Injectable() export class ExService{ constructor(private http: Http){ } getName(){ return this.http.get("/api/dados").map( (response: Response) =>{ return response.json(); } ); } } 这里是我的exemple.java(Java代码)。 它负责发送数据: package com.lucas.bef.Envia; import org.springframework.web.bind.annotation.GetMapping; import org.springframework.web.bind.annotation.RequestMapping; import […]