Compare commits
2 Commits
| Author | SHA1 | Date | |
|---|---|---|---|
| d92e9db856 | |||
| bf9dcffda3 |
-39
@@ -1,39 +0,0 @@
|
|||||||
#Maven
|
|
||||||
target/
|
|
||||||
pom.xml.tag
|
|
||||||
pom.xml.releaseBackup
|
|
||||||
pom.xml.versionsBackup
|
|
||||||
release.properties
|
|
||||||
|
|
||||||
# Eclipse
|
|
||||||
.project
|
|
||||||
.classpath
|
|
||||||
.settings/
|
|
||||||
bin/
|
|
||||||
|
|
||||||
# IntelliJ
|
|
||||||
.idea
|
|
||||||
*.ipr
|
|
||||||
*.iml
|
|
||||||
*.iws
|
|
||||||
|
|
||||||
# NetBeans
|
|
||||||
nb-configuration.xml
|
|
||||||
|
|
||||||
# Visual Studio Code
|
|
||||||
.vscode
|
|
||||||
.factorypath
|
|
||||||
|
|
||||||
# OSX
|
|
||||||
.DS_Store
|
|
||||||
|
|
||||||
# Vim
|
|
||||||
*.swp
|
|
||||||
*.swo
|
|
||||||
|
|
||||||
# patch
|
|
||||||
*.orig
|
|
||||||
*.rej
|
|
||||||
|
|
||||||
# Local environment
|
|
||||||
.env
|
|
||||||
@@ -1,21 +0,0 @@
|
|||||||
MIT License
|
|
||||||
|
|
||||||
Copyright (c) 2020 Yaoyuan Chu
|
|
||||||
|
|
||||||
Permission is hereby granted, free of charge, to any person obtaining a copy
|
|
||||||
of this software and associated documentation files (the "Software"), to deal
|
|
||||||
in the Software without restriction, including without limitation the rights
|
|
||||||
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
|
||||||
copies of the Software, and to permit persons to whom the Software is
|
|
||||||
furnished to do so, subject to the following conditions:
|
|
||||||
|
|
||||||
The above copyright notice and this permission notice shall be included in all
|
|
||||||
copies or substantial portions of the Software.
|
|
||||||
|
|
||||||
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
|
||||||
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
|
||||||
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
|
||||||
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
|
||||||
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
|
||||||
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
|
||||||
SOFTWARE.
|
|
||||||
@@ -1,65 +0,0 @@
|
|||||||
中文 | [English](./README.md)
|
|
||||||
<p align="center"><img src="https://s3.ax1x.com/2021/01/16/srNEa6.png" height="200" alt="logo"/></p>
|
|
||||||
<h1 align="center"> Jiscuss </h1>
|
|
||||||
<h3 align="center">基于java的简单论坛系统,Jiscuss = Java + Discuss。</h3>
|
|
||||||
|
|
||||||
---
|
|
||||||
|
|
||||||
<p align="center">
|
|
||||||
<a href="./LICENSE"><img src="https://img.shields.io/badge/License-MIT-blue" alt="License MIT"></a>
|
|
||||||
</p>
|
|
||||||
|
|
||||||
<p align="center">
|
|
||||||
<a href="https://github.com/chuyaoyuan/Jiscuss">Github 仓库</a> |
|
|
||||||
<a href="https://gitee.com/chuyaoyuan/Jiscuss">Gitee 仓库</a> |
|
|
||||||
<a href="http://demo.jiscuss.com/" target="_blank">在线体验</a>
|
|
||||||
</p>
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
# 预览(预留)
|
|
||||||
|
|
||||||
|
|
||||||
# 简介
|
|
||||||
基于JAVA 构建,官网:[[www.jiscuss.com]](http://www.jiscuss.com/)
|
|
||||||
|
|
||||||
# 在线体验
|
|
||||||
|
|
||||||
- [[DEMO地址]](http://demo.jiscuss.com/)
|
|
||||||
|
|
||||||
# 部署
|
|
||||||
## [一]、开发环境配置
|
|
||||||
|
|
||||||
```
|
|
||||||
// 需jdk 1.8以上,maven3以上。
|
|
||||||
```
|
|
||||||
|
|
||||||
## [二]、下载代码
|
|
||||||
|
|
||||||
```
|
|
||||||
// Github - https://gitee.com/chuyaoyuan/Jiscuss.git
|
|
||||||
// Gitee - https://github.com/Chuyaoyuan/Jiscuss.git
|
|
||||||
```
|
|
||||||
|
|
||||||
|
|
||||||
## [三]、运行启动(默认使用MYSQL数据库)
|
|
||||||
|
|
||||||
```
|
|
||||||
// 1、代码导入IDE
|
|
||||||
|
|
||||||
|
|
||||||
// 2、启动服务
|
|
||||||
|
|
||||||
|
|
||||||
// 4、访问地址
|
|
||||||
http://localhost
|
|
||||||
```
|
|
||||||
|
|
||||||
|
|
||||||
## [四]、开源协议
|
|
||||||
|
|
||||||
[MIT](https://opensource.org/licenses/MIT)
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
@@ -1,92 +0,0 @@
|
|||||||
INFO 2023-08-07 20:18:44.163 [-main][*][o.noear.solon.Solon]:
|
|
||||||
App: Start loading
|
|
||||||
INFO 2023-08-07 20:18:44.175 [-Solon-executor-1][*][o.noear.solon.Solon]:
|
|
||||||
Logging: console {level=TRACE, enable=true}
|
|
||||||
INFO 2023-08-07 20:18:44.203 [-main][*][o.noear.solon.Solon]:
|
|
||||||
App: Plugin starting
|
|
||||||
INFO 2023-08-07 20:18:44.315 [-main][*][o.noear.solon.Solon]:
|
|
||||||
View: load: BeetlRender
|
|
||||||
INFO 2023-08-07 20:18:44.316 [-main][*][o.noear.solon.Solon]:
|
|
||||||
View: load: org.noear.solon.view.beetl.BeetlRender
|
|
||||||
INFO 2023-08-07 20:18:44.316 [-main][*][o.noear.solon.Solon]:
|
|
||||||
View: mapping: .htm=BeetlRender
|
|
||||||
INFO 2023-08-07 20:18:44.317 [-main][*][o.noear.solon.Solon]:
|
|
||||||
View: mapping: .btl=BeetlRender
|
|
||||||
INFO 2023-08-07 20:18:44.326 [-main][*][o.noear.solon.Solon]:
|
|
||||||
App: Bean scanning
|
|
||||||
INFO 2023-08-07 20:18:44.352 [-main][*][o.noear.solon.Solon]:
|
|
||||||
View: mapping: @json=StringSerializerRender#SnackSerializer
|
|
||||||
INFO 2023-08-07 20:18:44.352 [-main][*][o.noear.solon.Solon]:
|
|
||||||
View: mapping: @type_json=StringSerializerRender#SnackSerializer
|
|
||||||
INFO 2023-08-07 20:18:44.365 [-main][*][o.noear.solon.Solon]:
|
|
||||||
Connector:main: jlhttp: Started ServerConnector@{HTTP/1.1,[http/1.1]}{http://localhost:80}
|
|
||||||
INFO 2023-08-07 20:18:44.365 [-main][*][o.noear.solon.Solon]:
|
|
||||||
Server:main: jlhttp: Started (jlhttp 2.6/2.4.2) @10ms
|
|
||||||
INFO 2023-08-07 20:18:44.366 [-main][*][o.noear.solon.Solon]:
|
|
||||||
App: End loading elapsed=838ms pid=28784 v=2.4.2
|
|
||||||
INFO 2023-08-07 20:21:20.710 [-Thread-2][*][o.noear.solon.Solon]:
|
|
||||||
Server:main: jlhttp: Has Stopped (jlhttp 2.6/2.4.2)
|
|
||||||
INFO 2023-08-07 20:21:27.896 [-main][*][o.noear.solon.Solon]:
|
|
||||||
App: Start loading
|
|
||||||
INFO 2023-08-07 20:21:27.912 [-Solon-executor-1][*][o.noear.solon.Solon]:
|
|
||||||
Logging: console {level=TRACE, enable=true}
|
|
||||||
INFO 2023-08-07 20:21:27.946 [-main][*][o.noear.solon.Solon]:
|
|
||||||
App: Plugin starting
|
|
||||||
INFO 2023-08-07 20:21:28.195 [-main][*][o.noear.solon.Solon]:
|
|
||||||
View: load: BeetlRender
|
|
||||||
INFO 2023-08-07 20:21:28.198 [-main][*][o.noear.solon.Solon]:
|
|
||||||
View: load: org.noear.solon.view.beetl.BeetlRender
|
|
||||||
INFO 2023-08-07 20:21:28.198 [-main][*][o.noear.solon.Solon]:
|
|
||||||
View: mapping: .htm=BeetlRender
|
|
||||||
INFO 2023-08-07 20:21:28.198 [-main][*][o.noear.solon.Solon]:
|
|
||||||
View: mapping: .btl=BeetlRender
|
|
||||||
INFO 2023-08-07 20:21:28.213 [-main][*][o.noear.solon.Solon]:
|
|
||||||
App: Bean scanning
|
|
||||||
INFO 2023-08-07 20:21:28.260 [-main][*][o.noear.solon.Solon]:
|
|
||||||
View: mapping: @json=StringSerializerRender#SnackSerializer
|
|
||||||
INFO 2023-08-07 20:21:28.261 [-main][*][o.noear.solon.Solon]:
|
|
||||||
View: mapping: @type_json=StringSerializerRender#SnackSerializer
|
|
||||||
INFO 2023-08-07 20:21:28.282 [-main][*][o.noear.solon.Solon]:
|
|
||||||
Connector:main: jlhttp: Started ServerConnector@{HTTP/1.1,[http/1.1]}{http://localhost:80}
|
|
||||||
INFO 2023-08-07 20:21:28.283 [-main][*][o.noear.solon.Solon]:
|
|
||||||
Server:main: jlhttp: Started (jlhttp 2.6/2.4.2) @16ms
|
|
||||||
INFO 2023-08-07 20:21:28.285 [-main][*][o.noear.solon.Solon]:
|
|
||||||
App: End loading elapsed=1027ms pid=32548 v=2.4.2
|
|
||||||
INFO 2023-08-07 20:21:30.257 [-Thread-2][*][o.noear.solon.Solon]:
|
|
||||||
Server:main: jlhttp: Has Stopped (jlhttp 2.6/2.4.2)
|
|
||||||
INFO 2023-08-07 20:21:35.121 [-main][*][o.noear.solon.Solon]:
|
|
||||||
App: Start loading
|
|
||||||
INFO 2023-08-07 20:21:35.135 [-Solon-executor-1][*][o.noear.solon.Solon]:
|
|
||||||
Logging: console {level=TRACE, enable=true}
|
|
||||||
INFO 2023-08-07 20:21:35.160 [-main][*][o.noear.solon.Solon]:
|
|
||||||
App: Plugin starting
|
|
||||||
INFO 2023-08-07 20:21:35.266 [-main][*][o.noear.solon.Solon]:
|
|
||||||
View: load: BeetlRender
|
|
||||||
INFO 2023-08-07 20:21:35.266 [-main][*][o.noear.solon.Solon]:
|
|
||||||
View: load: org.noear.solon.view.beetl.BeetlRender
|
|
||||||
INFO 2023-08-07 20:21:35.266 [-main][*][o.noear.solon.Solon]:
|
|
||||||
View: mapping: .htm=BeetlRender
|
|
||||||
INFO 2023-08-07 20:21:35.266 [-main][*][o.noear.solon.Solon]:
|
|
||||||
View: mapping: .btl=BeetlRender
|
|
||||||
INFO 2023-08-07 20:21:35.275 [-main][*][o.noear.solon.Solon]:
|
|
||||||
App: Bean scanning
|
|
||||||
INFO 2023-08-07 20:21:35.312 [-main][*][o.noear.solon.Solon]:
|
|
||||||
View: mapping: @json=StringSerializerRender#SnackSerializer
|
|
||||||
INFO 2023-08-07 20:21:35.312 [-main][*][o.noear.solon.Solon]:
|
|
||||||
View: mapping: @type_json=StringSerializerRender#SnackSerializer
|
|
||||||
INFO 2023-08-07 20:21:35.330 [-main][*][o.noear.solon.Solon]:
|
|
||||||
Connector:main: jlhttp: Started ServerConnector@{HTTP/1.1,[http/1.1]}{http://localhost:80}
|
|
||||||
INFO 2023-08-07 20:21:35.331 [-main][*][o.noear.solon.Solon]:
|
|
||||||
Server:main: jlhttp: Started (jlhttp 2.6/2.4.2) @14ms
|
|
||||||
INFO 2023-08-07 20:21:35.332 [-main][*][o.noear.solon.Solon]:
|
|
||||||
App: End loading elapsed=796ms pid=29432 v=2.4.2
|
|
||||||
INFO 2023-08-07 20:21:40.308 [-jlhttp-1][*][c.j.c.DemoController]:
|
|
||||||
test
|
|
||||||
INFO 2023-08-07 20:21:42.146 [-jlhttp-1][*][c.j.c.DemoController]:
|
|
||||||
test
|
|
||||||
INFO 2023-08-07 20:21:42.929 [-jlhttp-1][*][c.j.c.DemoController]:
|
|
||||||
test
|
|
||||||
INFO 2023-08-07 20:21:43.975 [-jlhttp-1][*][c.j.c.DemoController]:
|
|
||||||
test
|
|
||||||
INFO 2023-08-07 20:21:51.555 [-Thread-2][*][o.noear.solon.Solon]:
|
|
||||||
Server:main: jlhttp: Has Stopped (jlhttp 2.6/2.4.2)
|
|
||||||
@@ -1,68 +0,0 @@
|
|||||||
<?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">
|
|
||||||
<modelVersion>4.0.0</modelVersion>
|
|
||||||
|
|
||||||
<groupId>com.yaoyuan</groupId>
|
|
||||||
<artifactId>jiscuss</artifactId>
|
|
||||||
<version>2.0</version>
|
|
||||||
<packaging>jar</packaging>
|
|
||||||
|
|
||||||
<parent>
|
|
||||||
<groupId>org.noear</groupId>
|
|
||||||
<artifactId>solon-parent</artifactId>
|
|
||||||
<version>2.4.3</version>
|
|
||||||
<relativePath />
|
|
||||||
</parent>
|
|
||||||
|
|
||||||
<properties>
|
|
||||||
<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
|
|
||||||
<project.reporting.outputEncoding>UTF-8</project.reporting.outputEncoding>
|
|
||||||
</properties>
|
|
||||||
|
|
||||||
<dependencies>
|
|
||||||
<dependency>
|
|
||||||
<groupId>org.noear</groupId>
|
|
||||||
<artifactId>solon-api</artifactId>
|
|
||||||
</dependency>
|
|
||||||
|
|
||||||
<dependency>
|
|
||||||
<groupId>org.noear</groupId>
|
|
||||||
<artifactId>solon.auth</artifactId>
|
|
||||||
</dependency>
|
|
||||||
|
|
||||||
<dependency>
|
|
||||||
<groupId>org.noear</groupId>
|
|
||||||
<artifactId>solon.view.beetl</artifactId>
|
|
||||||
</dependency>
|
|
||||||
|
|
||||||
<dependency>
|
|
||||||
<groupId>org.noear</groupId>
|
|
||||||
<artifactId>solon.banner</artifactId>
|
|
||||||
</dependency>
|
|
||||||
|
|
||||||
<dependency>
|
|
||||||
<groupId>org.noear</groupId>
|
|
||||||
<artifactId>solon.logging.logback</artifactId>
|
|
||||||
</dependency>
|
|
||||||
|
|
||||||
<dependency>
|
|
||||||
<groupId>org.noear</groupId>
|
|
||||||
<artifactId>solon.health.detector</artifactId>
|
|
||||||
</dependency>
|
|
||||||
|
|
||||||
</dependencies>
|
|
||||||
|
|
||||||
|
|
||||||
<build>
|
|
||||||
<finalName>${project.artifactId}</finalName>
|
|
||||||
|
|
||||||
<plugins>
|
|
||||||
<plugin>
|
|
||||||
<groupId>org.noear</groupId>
|
|
||||||
<artifactId>solon-maven-plugin</artifactId>
|
|
||||||
</plugin>
|
|
||||||
</plugins>
|
|
||||||
</build>
|
|
||||||
</project>
|
|
||||||
@@ -1,18 +0,0 @@
|
|||||||
package com.jiscuss;
|
|
||||||
|
|
||||||
import com.jiscuss.dso.AuthProcessorImpl;
|
|
||||||
import org.noear.solon.annotation.Bean;
|
|
||||||
import org.noear.solon.annotation.Configuration;
|
|
||||||
import org.noear.solon.auth.AuthUtil;
|
|
||||||
|
|
||||||
/**
|
|
||||||
* @author cyy 2023/7/12 created
|
|
||||||
*/
|
|
||||||
@Configuration
|
|
||||||
public class Config {
|
|
||||||
@Bean
|
|
||||||
public void authAdapter(){
|
|
||||||
AuthUtil.adapter()
|
|
||||||
.processor(new AuthProcessorImpl());
|
|
||||||
}
|
|
||||||
}
|
|
||||||
@@ -1,15 +0,0 @@
|
|||||||
package com.jiscuss;
|
|
||||||
|
|
||||||
import org.noear.solon.Solon;
|
|
||||||
import org.noear.solon.annotation.SolonMain;
|
|
||||||
|
|
||||||
/**
|
|
||||||
* @author cyy 2023/7/12 created
|
|
||||||
*/
|
|
||||||
@SolonMain
|
|
||||||
public class JiscussApp {
|
|
||||||
public static void main(String[] args) {
|
|
||||||
Solon.start(JiscussApp.class, args)
|
|
||||||
.onError(e -> e.printStackTrace());
|
|
||||||
}
|
|
||||||
}
|
|
||||||
@@ -1,27 +0,0 @@
|
|||||||
package com.jiscuss.controller;
|
|
||||||
|
|
||||||
import org.noear.solon.annotation.Controller;
|
|
||||||
import org.noear.solon.annotation.Mapping;
|
|
||||||
import org.noear.solon.core.handle.ModelAndView;
|
|
||||||
import org.slf4j.Logger;
|
|
||||||
import org.slf4j.LoggerFactory;
|
|
||||||
|
|
||||||
|
|
||||||
/**
|
|
||||||
* @author cyy 2023/7/12 created
|
|
||||||
*/
|
|
||||||
@Controller
|
|
||||||
public class DemoController {
|
|
||||||
|
|
||||||
static Logger log = LoggerFactory.getLogger(DemoController.class);
|
|
||||||
|
|
||||||
@Mapping("/")
|
|
||||||
public Object test(){
|
|
||||||
log.info("test");
|
|
||||||
ModelAndView model = new ModelAndView("index.htm");
|
|
||||||
model.put("title","jiscuss");
|
|
||||||
model.put("message","你好 jiscuss!");
|
|
||||||
|
|
||||||
return model;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
@@ -1,36 +0,0 @@
|
|||||||
package com.jiscuss.dso;
|
|
||||||
|
|
||||||
import org.noear.solon.auth.AuthProcessorBase;
|
|
||||||
|
|
||||||
import java.util.ArrayList;
|
|
||||||
import java.util.List;
|
|
||||||
|
|
||||||
/**
|
|
||||||
* @author cyy 2023/7/12 created
|
|
||||||
*/
|
|
||||||
public class AuthProcessorImpl extends AuthProcessorBase {
|
|
||||||
@Override
|
|
||||||
public boolean verifyLogined() {
|
|
||||||
return true;
|
|
||||||
}
|
|
||||||
|
|
||||||
@Override
|
|
||||||
protected List<String> getPermissions() {
|
|
||||||
List<String> list = new ArrayList<>();
|
|
||||||
|
|
||||||
list.add("user:add");
|
|
||||||
list.add("user:demo");
|
|
||||||
|
|
||||||
return list;
|
|
||||||
}
|
|
||||||
|
|
||||||
@Override
|
|
||||||
protected List<String> getRoles() {
|
|
||||||
List<String> list = new ArrayList<>();
|
|
||||||
|
|
||||||
list.add("admin1");
|
|
||||||
list.add("admin2");
|
|
||||||
|
|
||||||
return list;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
@@ -1,55 +0,0 @@
|
|||||||
<html>
|
|
||||||
<head>
|
|
||||||
<title>${title}</title>
|
|
||||||
</head>
|
|
||||||
<body>
|
|
||||||
jiscss::${message}
|
|
||||||
|
|
||||||
<table>
|
|
||||||
<tr>
|
|
||||||
<td>权限(user:add)</td>
|
|
||||||
<td>
|
|
||||||
<#authPermissions name="user:add">
|
|
||||||
有
|
|
||||||
</#authPermissions>
|
|
||||||
</td>
|
|
||||||
</tr>
|
|
||||||
<tr>
|
|
||||||
<td>权限(user:del)</td><td>
|
|
||||||
<#authPermissions name="user:del">
|
|
||||||
有
|
|
||||||
</#authPermissions>
|
|
||||||
</td>
|
|
||||||
</tr>
|
|
||||||
<tr>
|
|
||||||
<td>权限(user:clear)</td><td>
|
|
||||||
<#authPermissions name="user:clear">
|
|
||||||
有
|
|
||||||
</#authPermissions>
|
|
||||||
</td>
|
|
||||||
</tr>
|
|
||||||
<tr>
|
|
||||||
<td>角色(admin1)</td><td>
|
|
||||||
<#authRoles name="admin1">
|
|
||||||
有
|
|
||||||
</#authRoles>
|
|
||||||
</td>
|
|
||||||
</tr>
|
|
||||||
<tr>
|
|
||||||
<td>角色(admin2)</td><td>
|
|
||||||
<#authRoles name="admin2">
|
|
||||||
有
|
|
||||||
</#authRoles>
|
|
||||||
</td>
|
|
||||||
</tr>
|
|
||||||
<tr>
|
|
||||||
<td>角色(admin3)</td><td>
|
|
||||||
<#authRoles name="admin3">
|
|
||||||
有
|
|
||||||
</#authRoles>
|
|
||||||
</td>
|
|
||||||
</tr>
|
|
||||||
</table>
|
|
||||||
|
|
||||||
</body>
|
|
||||||
</html>
|
|
||||||
@@ -1,8 +0,0 @@
|
|||||||
server.port: 80
|
|
||||||
|
|
||||||
solon.app:
|
|
||||||
name: jiscuss
|
|
||||||
group: jiscuss
|
|
||||||
|
|
||||||
# 可选: *,disk,cpu,jvm,memory,os,qps
|
|
||||||
solon.health.detector: "*"
|
|
||||||
@@ -1,8 +0,0 @@
|
|||||||
_ _
|
|
||||||
| (_)
|
|
||||||
| |_ ___ ___ _ _ ___ ___
|
|
||||||
_ | | / __|/ __| | | / __/ __|
|
|
||||||
| |__| | \__ \ (__| |_| \__ \__ \
|
|
||||||
\____/|_|___/\___|\__,_|___/___/
|
|
||||||
=========================================================
|
|
||||||
:: Solon :: (v${solon.version})
|
|
||||||
Reference in New Issue
Block a user