新增app模块,用于多站点前端

This commit is contained in:
china-bin 2020-09-14 15:02:23 +08:00
parent b5b5d337b0
commit c4bdae329a
6 changed files with 54 additions and 0 deletions

View File

@ -28,6 +28,8 @@
2. 资源管理:统一管理资源,保障资源不被重复使用。
3. 模板主题管理:可以针对不同站点设置不同的模板。
4. redis缓存管理
5. 新增app模块用于多站点前端。
## 扩展代码生成
1. 新增站点id选择器与选择器类型。

View File

@ -86,6 +86,13 @@
<version>${ruoyi.version}</version>
</dependency>
<!-- app模块-->
<dependency>
<groupId>com.ruoyi</groupId>
<artifactId>ruoyi-app</artifactId>
<version>${ruoyi.version}</version>
</dependency>
</dependencies>
<build>

23
ruoyi-app/pom.xml Normal file
View File

@ -0,0 +1,23 @@
<?xml version="1.0" encoding="UTF-8"?>
<project xmlns="http://maven.apache.org/POM/4.0.0"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
<parent>
<artifactId>ruoyi</artifactId>
<groupId>com.ruoyi</groupId>
<version>4.4.0</version>
</parent>
<modelVersion>4.0.0</modelVersion>
<artifactId>ruoyi-app</artifactId>
<dependencies>
<!-- cms模块-->
<dependency>
<groupId>com.ruoyi</groupId>
<artifactId>ruoyi-cms</artifactId>
<version>${ruoyi.version}</version>
</dependency>
</dependencies>
</project>

View File

@ -0,0 +1,22 @@
package com.ruoyi.app.controller;
import com.ruoyi.cms.service.ISysSiteService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.ResponseBody;
@Controller
public class TestffController {
@Autowired
ISysSiteService sysSiteService;
@RequestMapping("/test")
@ResponseBody
public String test() {
return "test";
}
}

View File