// Path: spring-boot-oauth-authorization-server/src/main/java/com/sdcuike/practice/mapper/StudentMapper.java
// @UseDataSourceTest
// public interface StudentMapper {
//     int deleteByPrimaryKey(Long studId);
// 
//     int insert(StudentWithBLOBs record);
// 
//     int insertSelective(StudentWithBLOBs record);
// 
//     StudentWithBLOBs selectByPrimaryKey(Long studId);
// 
//     int updateByPrimaryKeySelective(StudentWithBLOBs record);
// 
//     int updateByPrimaryKeyWithBLOBs(StudentWithBLOBs record);
// 
//     int updateByPrimaryKey(Student record);
// }


import com.sdcuike.mybatis.auditor.AuditorServiceUtis;
import com.sdcuike.practice.mapper.StudentMapper;
import com.sdcuike.spring.extend.web.SpringHandlerInterceptor;
import lombok.extern.slf4j.Slf4j;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.servlet.ModelAndView;
import org.springframework.web.servlet.handler.HandlerInterceptorAdapter;
import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;
import java.util.UUID;
package com.sdcuike.practice.config;



/**
 * Created by beaver on 2017/4/25.
 *
 * 注入自己的服务，利用AuditorServiceUtis.setUserId 设值。
 */
@SpringHandlerInterceptor
@Slf4j
public class AuditorConfig extends HandlerInterceptorAdapter {
    @Autowired
// Path: spring-boot-oauth-authorization-server/src/main/java/com/sdcuike/practice/mapper/StudentMapper.java
// @UseDataSourceTest
// public interface StudentMapper {
//     int deleteByPrimaryKey(Long studId);
// 
//     int insert(StudentWithBLOBs record);
// 
//     int insertSelective(StudentWithBLOBs record);
// 
//     StudentWithBLOBs selectByPrimaryKey(Long studId);
// 
//     int updateByPrimaryKeySelective(StudentWithBLOBs record);
// 
//     int updateByPrimaryKeyWithBLOBs(StudentWithBLOBs record);
// 
//     int updateByPrimaryKey(Student record);
// }


// Path: spring-boot-oauth-authorization-server/src/main/java/com/sdcuike/practice/config/AuditorConfig.java
import com.sdcuike.mybatis.auditor.AuditorServiceUtis;
import com.sdcuike.practice.mapper.StudentMapper;
import com.sdcuike.spring.extend.web.SpringHandlerInterceptor;
import lombok.extern.slf4j.Slf4j;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.servlet.ModelAndView;
import org.springframework.web.servlet.handler.HandlerInterceptorAdapter;
import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;
import java.util.UUID;

package com.sdcuike.practice.config;



/**
 * Created by beaver on 2017/4/25.
 *
 * 注入自己的服务，利用AuditorServiceUtis.setUserId 设值。
 */
@SpringHandlerInterceptor
@Slf4j
public class AuditorConfig extends HandlerInterceptorAdapter {
    @Autowired
    private StudentMapper studentMapper;