File tree 1 file changed +6
-2
lines changed
website/src/main/java/info/xiaomo/website/controller 1 file changed +6
-2
lines changed Original file line number Diff line number Diff line change 12
12
import org .springframework .beans .factory .annotation .Autowired ;
13
13
import org .springframework .data .domain .Page ;
14
14
import 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 ;
16
20
17
21
import java .util .List ;
18
22
@@ -78,7 +82,7 @@ public Result findByName(@PathVariable("name") String name) {
78
82
if (model == null ) {
79
83
return new Result (CodeConst .NULL_DATA .getResultCode (), CodeConst .NULL_DATA .getMessage ());
80
84
}
81
- return new Result (model );
85
+ return new Result <> (model );
82
86
}
83
87
84
88
/**
You can’t perform that action at this time.
0 commit comments