@PreAuthorize("hasAuthority('course_find_list')") @Override
public QueryResult<CourseInfo> findCourseList(@PathVariable("page") int page,
@PathVariable("size") int size,
CourseListRequest courseListRequest)
@PreAuthorize("hasAuthority('course_get_baseinfo')")
@Override public CourseBase getCourseBaseById(@PathVariable("courseId") String courseId)
//激活方法上的PreAuthorize注解
@EnableGlobalMethodSecurity(prePostEnabled = true, securedEnabled = true)
欢迎光临 黑马程序员技术交流社区 (http://bbs.itheima.com/) | 黑马程序员IT技术论坛 X3.2 |