首页 试题详情
多选题

云计算新课2-RestTemplate使用方式之一就是直接使用RestTemplate,然后将 url 写死,这种方式缺点是( )

A属于url硬编码

Bip变动时需要在代码中更改

C只能配置一个url

D使用方便

正确答案:A (备注:此答案有误)

相似试题

  • 单选题

    计算新课2-在Get请求方式下,RestTemplate使用方式有几种( )

    答案解析

  • 多选题

    计算新课2-RestTemplate使用方式之一就是直接使用RestTemplate,然后将 url 写死,这种方式缺点是( )

    答案解析

  • 单选题

    计算新课2-通过配置注入Spring容器来使用RestTemplate时, url 写的是

    答案解析

  • 单选题

    计算新课2-补全下面代码横线处部分( )@GetMapping(getMsg)public String getMsg(){ RestTemplate template = new RestTemplate(); return template.getForObject(http://localhost:8080/msg,___);}

    答案解析

  • 单选题

    计算新课2-RestTemplate一种使用方式是通过配置注入Spring容器来使用。这种方式下 url 写的是( )

    答案解析

热门题库