File tree Expand file tree Collapse file tree 1 file changed +6
-2
lines changed
website/src/main/java/info/xiaomo/website/controller Expand file tree Collapse file tree 1 file changed +6
-2
lines changed Original file line number Diff line number Diff line change 1212import org .springframework .beans .factory .annotation .Autowired ;
1313import org .springframework .data .domain .Page ;
1414import org .springframework .http .MediaType ;
15- import org .springframework .web .bind .annotation .*;
15+ import org .springframework .web .bind .annotation .PathVariable ;
16+ import org .springframework .web .bind .annotation .RequestBody ;
17+ import org .springframework .web .bind .annotation .RequestMapping ;
18+ import org .springframework .web .bind .annotation .RequestMethod ;
19+ import org .springframework .web .bind .annotation .RestController ;
1620
1721import java .util .List ;
1822
@@ -78,7 +82,7 @@ public Result findByName(@PathVariable("name") String name) {
7882 if (model == null ) {
7983 return new Result (CodeConst .NULL_DATA .getResultCode (), CodeConst .NULL_DATA .getMessage ());
8084 }
81- return new Result (model );
85+ return new Result <> (model );
8286 }
8387
8488 /**
You can’t perform that action at this time.
0 commit comments