mirror of https://gitee.com/hnkaibin/RuoYi-cms.git
新增app模块,用于多站点前端
This commit is contained in:
parent
b5b5d337b0
commit
c4bdae329a
|
@ -28,6 +28,8 @@
|
|||
2. 资源管理:统一管理资源,保障资源不被重复使用。
|
||||
3. 模板主题管理:可以针对不同站点设置不同的模板。
|
||||
4. redis缓存管理
|
||||
5. 新增app模块,用于多站点前端。
|
||||
|
||||
|
||||
## 扩展代码生成
|
||||
1. 新增站点id选择器与选择器类型。
|
||||
|
|
|
@ -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>
|
||||
|
|
|
@ -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>
|
|
@ -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";
|
||||
}
|
||||
|
||||
}
|
Loading…
Reference in New Issue