Score
0
Watch 3.1K Star 11.9K Fork 5.8K

GVP若依 / RuoYiJavaMIT

你原先的com.ruoyi.报名不动,我加一个com.pj.**的包名,怎么添加呢?

Closed
清风徐来  Opened this issue

package com.ruoyi.framework.config;

import org.mybatis.spring.annotation.MapperScan;
import org.springframework.context.annotation.Configuration;
import org.springframework.context.annotation.EnableAspectJAutoProxy;

/**

  • 程序注解配置
  • @Author ruoyi
    */
    @configuration
    // 表示通过aop框架暴露该代理对象,AopContext能够访问
    @EnableAspectJAutoProxy(exposeProxy = true)
    // 指定要扫描的Mapper类的包的路径
    //@MapperScan("com.ruoyi..mapper")
    @MapperScan({"com.ruoyi.
    .mapper","com.pj.**.mapper"})
    public class ApplicationConfig
    {

}
我只改了这个 貌似不管用呢

1151004 y project 1578942802 total 3 participants

Comments (2)

ʚJerry 2020-03-29 16:42

1151004 y project 1578942802
若依 2020-03-30 18:29 owner

application.yml也需要

# 搜索指定包别名
typeAliasesPackage: com.ruoyi.**.domain, com.xxxx.**.domain

Sign in to comment

Assignees
Labels
Not set
Projects
Milestones
Branches
Planed to start
Not set
Planed to end
Not set
Top level
Priority
Java
1
https://gitee.com/y_project/RuoYi.git
git@gitee.com:y_project/RuoYi.git
y_project
RuoYi
RuoYi

Help Search