大神请问下,在springboot里这样用jpa,怎么将用@Query注解写SQL改为xml文件配置SQL啊。
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) ; }