Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

请问jeecg-boot可不可以把magic-api集成进来? #5929

Open
capricornstone opened this issue Feb 29, 2024 · 1 comment
Open

请问jeecg-boot可不可以把magic-api集成进来? #5929

capricornstone opened this issue Feb 29, 2024 · 1 comment

Comments

@capricornstone
Copy link

magic-api开发起来很快速,请问jeecg-boot可不可以把magic-api集成进来?

@Mrxuzw
Copy link

Mrxuzw commented Mar 1, 2024

可以
1.要是微服务版本在jeecg-server-cloud下新建一个全新的模块
image
用的boot版本新建一个与jeecg-server-cloud同级模块
2.在新建模块pom文件中引入以下依赖


org.ssssssss
magic-api-spring-boot-starter
2.1.1

    <dependency>
        <groupId>org.springframework.boot</groupId>
        <artifactId>spring-boot-starter</artifactId>
    </dependency>
    <dependency>
        <groupId>org.springframework.boot</groupId>
        <artifactId>spring-boot-starter-web</artifactId>
    </dependency>
    <dependency>
        <groupId>org.springframework.boot</groupId>
        <artifactId>spring-boot-starter-test</artifactId>
        <scope>test</scope>
    </dependency>
    <dependency>
        <groupId>org.springframework.boot</groupId>
        <artifactId>spring-boot-starter-jdbc</artifactId>
    </dependency>
    <!--MySQL驱动-->
    <dependency>
        <groupId>mysql</groupId>
        <artifactId>mysql-connector-java</artifactId>
        <version>8.0.27</version>
    </dependency>
    <dependency>
        <groupId>com.alibaba.cloud</groupId>
        <artifactId>spring-cloud-starter-alibaba-nacos-discovery</artifactId>
    </dependency>
    <dependency>
        <groupId>com.alibaba.cloud</groupId>
        <artifactId>spring-cloud-starter-alibaba-nacos-config</artifactId>
    </dependency>
    <dependency>
        <groupId>org.jeecgframework.boot</groupId>
        <artifactId>jeecg-boot-common</artifactId>
    </dependency>
    <!--oracle驱动-->
    <dependency>
        <groupId>com.oracle</groupId>
        <artifactId>ojdbc8</artifactId>
        <version>23.3.0.23.09</version>
    </dependency>
    <!--postgresql-->
    <dependency>
        <groupId>org.postgresql</groupId>
        <artifactId>postgresql</artifactId>
    </dependency>
</dependencies>

<build>
    <plugins>
        <plugin>
            <groupId>org.springframework.boot</groupId>
            <artifactId>spring-boot-maven-plugin</artifactId>
        </plugin>
    </plugins>
</build>

image

3.配置magic启动相关配置
a.magi-api数据源复用jeecg-boot的
image
b.配置访问资源路径及分页规则
image

4.启动新建模块,通过http://ip+新建模块端口//magic/web即可访问

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants