You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
import com.alibaba.nacos.example.spring.model.User;
import org.apache.ibatis.annotations.Param;
import org.apache.ibatis.annotations.Select;
public interface UserMapper {
@Select(value = "select id, name from user where id = #{id}")
User findById(@Param("id") long id);
}
The text was updated successfully, but these errors were encountered:
For example, when using both Druid and Mybatis, the mapper class is initialized during nacos-spring-context loading.
nacos.xml
data-source.xml
spring-config-mybatis.xml
UserMapper
The text was updated successfully, but these errors were encountered: