qq_吾龍传人AKH_0
2018-12-19 09:57
public interface UserRepository extends CrudRepository<User,String>{ @Query(value="select * from t_dm_employee tde where tde.u_id= :userId ",nativeQuery=true) public User queryUserByUid(@Param("userId") String userId) ; }
https://github.com/VonChange/spring-data-mybatis-mini spring data mybatis 实现 代码放到markdown里更容易书写
+1~
轻松愉快之玩转SpringData
34087 学习 · 119 问题
相似问题