不要在ruoyi上面写逻辑,想重新搞个服务写,这样清爽,最后结构是这样

标准打包72M,


注掉插件导轨打包,
只有3M了


编写新的业务启动类
manager服务是复制的ruo-sysadmin服务改的, 这里的启动类,实际上是有引用了ruoyi-admin的启动类,如果要同时间用到两个类启动,往下看。
启动类除了要传若依框架,还要传本身这个业务的框架。

最终的启动类是这样

- package com.ruoyi.manager;
-
- import com.ruoyi.RuoYiApplication;
- import org.springframework.boot.SpringApplication;
- import org.springframework.context.annotation.ComponentScan;
- import org.springframework.context.annotation.Configuration;
-
- @Configuration
- @ComponentScan
- public class ManagerApplication {
- public static void main(String[] args)
- {
- SpringApplication.run(
- new Class[]{
- RuoYiApplication.class,
- ManagerApplication.class},
- args);
- System.out.println("(♥◠‿◠)ノ゙ 若依启动成功(manager) ლ(´ڡ`ლ)゙ \n" +
- " .-------. ____ __ \n" +
- " | _ _ \\ \\ \\ / / \n" +
- " | ( ' ) | \\ _. / ' \n" +
- " |(_ o _) / _( )_ .' \n" +
- " | (_,_).' __ ___(_ o _)' \n" +
- " | |\\ \\ | || |(_,_)' \n" +
- " | | \\ `' /| `-' / \n" +
- " | | \\ / \\ / \n" +
- " ''-' `'-' `-..-' ");
- }
- }
- CREATE TABLE `ceshi` (
- `id` bigint(20) NOT NULL AUTO_INCREMENT COMMENT 'id',
- `name` varchar(50) CHARACTER SET utf8 COLLATE utf8_general_ci DEFAULT NULL COMMENT '姓名',
- `age` int(3) DEFAULT NULL COMMENT '年龄',
- `create_time` datetime DEFAULT NULL ON UPDATE CURRENT_TIMESTAMP,
- PRIMARY KEY (`id`)
- ) ENGINE=InnoDB AUTO_INCREMENT=3 DEFAULT CHARSET=utf8;



