Commit b2ea524c by lihui.wang

规范命名

parent d1ce99b7
......@@ -133,8 +133,8 @@
<dependency>
<groupId>org.mybatis</groupId>
<artifactId>mybatis</artifactId>
<version>3.4.2</version>
<artifactId>mybatis-spring</artifactId>
<version>1.3.0</version>
</dependency>
</dependencies>
......
package com.freemud.pay.job;
import org.mybatis.spring.annotation.MapperScan;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.context.annotation.ComponentScan;
@ComponentScan("com.freemud.pay.job.dao.mapper")
@SpringBootApplication
public class PushMessageApplication {
......
......@@ -7,8 +7,8 @@ import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.context.annotation.Primary;
import org.springframework.stereotype.Repository;
//@Primary
//@Repository
@Primary
@Repository
public class PartnerRepositoryImpl extends BaseRepositoryImpl implements IPartnerRepository {
@Override
protected IBaseDao getDao() {
......
......@@ -5,6 +5,8 @@ import com.freemud.pay.job.dao.dbModel.PayMessageActiveDM;
import com.freemud.pay.job.dao.mapper.PayMessageActiveDMMapper;
import com.freemud.pay.job.dao.repository.IPayMessageActiveRepository;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.context.annotation.Primary;
import org.springframework.stereotype.Repository;
/**
* All rights Reserved, Designed By www.freemud.cn
......@@ -17,8 +19,8 @@ import org.springframework.beans.factory.annotation.Autowired;
* @Copyright: 2017 www.freemud.cn Inc. All rights reserved.
* 注意:本内容仅限于上海非码科技内部传阅,禁止外泄以及用于其他的商业目
*/
//@Primary
//@Repository
@Primary
@Repository
public class PayMessageActiveRepositoryImpl extends BaseRepositoryImpl implements IPayMessageActiveRepository {
@Autowired
......
......@@ -5,6 +5,8 @@ import com.freemud.pay.job.dao.dbModel.PayMessageDM;
import com.freemud.pay.job.dao.mapper.PayMessageDMMapper;
import com.freemud.pay.job.dao.repository.IPayMessageRepository;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.context.annotation.Primary;
import org.springframework.stereotype.Repository;
import java.util.List;
......@@ -19,8 +21,8 @@ import java.util.List;
* @Copyright: 2017 www.freemud.cn Inc. All rights reserved.
* 注意:本内容仅限于上海非码科技内部传阅,禁止外泄以及用于其他的商业目
*/
//@Primary
//@Repository
@Primary
@Repository
public class PayMessageRepositoryImpl extends BaseRepositoryImpl implements IPayMessageRepository {
@Autowired
......
......@@ -22,8 +22,8 @@ import java.util.List;
* @Copyright: 2017 www.freemud.cn Inc. All rights reserved.
* 注意:本内容仅限于上海非码科技内部传阅,禁止外泄以及用于其他的商业目
*/
//@Primary
//@Repository
@Primary
@Repository
public class PayRepositoryImpl extends BaseRepositoryImpl implements IPayRepository {
@Override
protected IBaseDao getDao() {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment