Tabnine Logo
DeptService
Code IndexAdd Tabnine to your IDE (free)

How to use
DeptService
in
com.atguigu.springcloud.service

Best Java code snippets using com.atguigu.springcloud.service.DeptService (Showing top 13 results out of 315)

origin: ZhongFuCheng3y/msc-Demo

@RequestMapping(value = "/dept/add", method = RequestMethod.POST)
public boolean add(@RequestBody Dept dept)
{
  return service.add(dept);
}
origin: ZhongFuCheng3y/msc-Demo

@RequestMapping(value = "/dept/list", method = RequestMethod.GET)
public List<Dept> list()
{
  return service.list();
}
origin: ZhongFuCheng3y/msc-Demo

@RequestMapping(value = "/dept/get/{id}", method = RequestMethod.GET)
public Dept get(@PathVariable("id") Long id)
{
  return service.get(id);
}
origin: ZhongFuCheng3y/msc-Demo

@RequestMapping(value = "/dept/get/{id}", method = RequestMethod.GET)
public Dept get(@PathVariable("id") Long id)
{
  return service.get(id);
}
origin: ZhongFuCheng3y/msc-Demo

@RequestMapping(value = "/dept/get/{id}", method = RequestMethod.GET)
public Dept get(@PathVariable("id") Long id) {
  return service.get(id);
}
origin: ZhongFuCheng3y/msc-Demo

@RequestMapping(value = "/dept/add", method = RequestMethod.POST)
public boolean add(@RequestBody Dept dept)
{
  return service.add(dept);
}
origin: ZhongFuCheng3y/msc-Demo

@RequestMapping(value = "/dept/list", method = RequestMethod.GET)
public List<Dept> list()
{
  return service.list();
}
origin: ZhongFuCheng3y/msc-Demo

@RequestMapping(value = "/dept/get/{id}", method = RequestMethod.GET)
public Dept get(@PathVariable("id") Long id) {
  System.out.println("i am 8001 ");
  return service.get(id);
}
origin: ZhongFuCheng3y/msc-Demo

@RequestMapping(value = "/dept/add", method = RequestMethod.POST)
public boolean add(@RequestBody Dept dept) {
  return service.add(dept);
}
origin: ZhongFuCheng3y/msc-Demo

@RequestMapping(value = "/dept/list", method = RequestMethod.GET)
public List<Dept> list() {
  return service.list();
}
origin: ZhongFuCheng3y/msc-Demo

@RequestMapping(value = "/dept/get/{id}", method = RequestMethod.GET)
//一旦调用服务方法失败并抛出了错误信息后,会自动调用@HystrixCommand标注好的fallbackMethod调用类中的指定方法
@HystrixCommand(fallbackMethod = "processHystrix_Get")
public Dept get(@PathVariable("id") Long id) {
  Dept dept = this.service.get(id);
  if (null == dept) {
    throw new RuntimeException("该ID:" + id + "没有没有对应的信息");
  }
  return dept;
}
origin: ZhongFuCheng3y/msc-Demo

@RequestMapping(value = "/dept/add", method = RequestMethod.POST)
public boolean add(@RequestBody Dept dept) {
  return service.add(dept);
}
origin: ZhongFuCheng3y/msc-Demo

@RequestMapping(value = "/dept/list", method = RequestMethod.GET)
public List<Dept> list() {
  return service.list();
}
com.atguigu.springcloud.serviceDeptService

Most used methods

  • get
  • add
  • list

Popular in Java

  • Making http post requests using okhttp
  • setContentView (Activity)
  • compareTo (BigDecimal)
  • onRequestPermissionsResult (Fragment)
  • Font (java.awt)
    The Font class represents fonts, which are used to render text in a visible way. A font provides the
  • File (java.io)
    An "abstract" representation of a file system entity identified by a pathname. The pathname may be a
  • InputStream (java.io)
    A readable source of bytes.Most clients will use input streams that read data from the file system (
  • Timestamp (java.sql)
    A Java representation of the SQL TIMESTAMP type. It provides the capability of representing the SQL
  • Semaphore (java.util.concurrent)
    A counting semaphore. Conceptually, a semaphore maintains a set of permits. Each #acquire blocks if
  • DateTimeFormat (org.joda.time.format)
    Factory that creates instances of DateTimeFormatter from patterns and styles. Datetime formatting i
  • Top 12 Jupyter Notebook extensions
Tabnine Logo
  • Products

    Search for Java codeSearch for JavaScript code
  • IDE Plugins

    IntelliJ IDEAWebStormVisual StudioAndroid StudioEclipseVisual Studio CodePyCharmSublime TextPhpStormVimGoLandRubyMineEmacsJupyter NotebookJupyter LabRiderDataGripAppCode
  • Company

    About UsContact UsCareers
  • Resources

    FAQBlogTabnine AcademyTerms of usePrivacy policyJava Code IndexJavascript Code Index
Get Tabnine for your IDE now