SpringCloud actual combat – (3) Method for calling modules via RESTFUL

Create a class in the project and write the following:

package< span style="color: #000000;"> com.f*iservice.controller;


import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

/**
* @ClassName FeiController
* @Description
* @Author chenfei
* @Date 2019-07-12 16:50
*
*/
@RestController
@RequestMapping(
"/f*i")
public class FeiController {

@GetMapping(
"/*f")
public int getFei(){
return 1;
}
}

The project starts, visit in the browser, and return the following content:

share picture

package com.f*iservice.controller;


import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

/**
* @ClassName FeiController
* @Description
* @Author chenfei
* @Date 2019-07-12 16:50
*
*/
@RestController
@RequestMapping(
"/f*i")
public class FeiController {

@GetMapping(
"/*f")
public int getFei(){
return 1;
}
}

WordPress database error: [Table 'yf99682.wp_s6mz6tyggq_comments' doesn't exist]
SELECT SQL_CALC_FOUND_ROWS wp_s6mz6tyggq_comments.comment_ID FROM wp_s6mz6tyggq_comments WHERE ( comment_approved = '1' ) AND comment_post_ID = 4308 ORDER BY wp_s6mz6tyggq_comments.comment_date_gmt ASC, wp_s6mz6tyggq_comments.comment_ID ASC

Leave a Comment

Your email address will not be published.