微信小程序

wx.request({
      url: 'http://localhost:8090/jjj',
      data:{},
      method:'GET',
      header: {
        'content-type': 'application/json'
      },
      success: function (res) {
        console.log(res.data)
      }
    })
后端
public class Hello {
@GetMapping("/jjj")
public String hello(){
return "hello";
}
}
感觉和vue差不多
posted @ 2024-01-17 14:01  不洗澡超酷  阅读(20)  评论(0)    收藏  举报