diff --git a/README.md b/README.md index 2f3a465..bfedc01 100644 --- a/README.md +++ b/README.md @@ -1,2 +1,62 @@ -# Jiscuss -Jiscuss-基于java的简单论坛系统 +中文   |   [English](./README.md) +

logo

+

Jiscuss

+

基于java的简单论坛系统,Jiscuss = Java + Discuss

+ +--- + +

+ License MIT +

+ +

+ Github 仓库   |   + Gitee 仓库   |   + 在线体验 +

+ + + + +# 预览 +[![sykhy4.md.png](https://s3.ax1x.com/2021/01/17/sykhy4.md.png)](https://imgchr.com/i/sykhy4) + + +# 简介 +基于JAVA,使用SpringBoot + H2 Database + Semantic-UI 构建,[[www.jiscuss.com]](http://www.jiscuss.com/) + +# 在线体验 + +- [[DEMO地址]](http://demo.jiscuss.com/) + +# 部署 +## [一]、开发环境配置 + +``` +// 需jdk 1.8+,maven +``` + +## [二]、下载代码 + + + +## [三]、运行启动 + +``` +// 1、代码导入IDE + + +// 2、启动服务 + + +// 3、访问地址 +http://localhost +``` + + +## [四]、开源协议 + +[MIT](https://opensource.org/licenses/MIT) + + + diff --git a/src/main/java/com/yaoyuan/jiscuss/controller/AdminSystemController.java b/src/main/java/com/yaoyuan/jiscuss/controller/AdminSystemController.java index d2444c1..01e2b07 100644 --- a/src/main/java/com/yaoyuan/jiscuss/controller/AdminSystemController.java +++ b/src/main/java/com/yaoyuan/jiscuss/controller/AdminSystemController.java @@ -1,6 +1,12 @@ package com.yaoyuan.jiscuss.controller; +import com.yaoyuan.jiscuss.entity.UserInfo; import org.springframework.stereotype.Controller; +import org.springframework.ui.ModelMap; +import org.springframework.web.bind.annotation.RequestMapping; +import org.springframework.web.bind.annotation.RequestParam; + +import javax.servlet.http.HttpServletRequest; /** * 后台系统控制器 @@ -13,4 +19,15 @@ public class AdminSystemController { //后台退出 //后台设置管理 + + /** + * 后台页面 + * + * @return + */ + @RequestMapping("/admin/home") + public String user(@RequestParam(defaultValue = "discussion") String type, HttpServletRequest request, ModelMap map) { + + return "admin/home"; + } } diff --git a/src/main/resources/application.yml b/src/main/resources/application.yml index e627583..7ddbf18 100644 --- a/src/main/resources/application.yml +++ b/src/main/resources/application.yml @@ -1,22 +1,29 @@ -#mysql 配置 +#h2 配置 spring: cache: type: ehcache ehcache: config: classpath:ehcache.xml jpa: - database: MYSQL + generate-ddl: false show-sql: true hibernate: - ddl-auto: update + ddl-auto: none + h2: + console: + path: /h2-console + enabled: true + settings: + web-allow-others: true datasource: - url: jdbc:mysql://localhost:3306/jiscuss?useUnicode=true&characterEncoding=utf8&zeroDateTimeBehavior=convertToNull&autoReconnect=true&useSSL=false - username: root - password: 123456 - driver-class-name: com.mysql.jdbc.Driver + platform: h2 + url: jdbc:h2:~/testjiscuss + username: sa + password: + schema: classpath:schema.sql + data: classpath:data.sql + driver-class-name: org.h2.Driver type: com.alibaba.druid.pool.DruidDataSource - tomcat: - init-s-q-l: SET NAMES utf8mb4 druid: min-idle: 2 initial-size: 5 @@ -27,7 +34,7 @@ spring: filter: stat: enabled: true - db-type: mysql + db-type: h2 log-slow-sql: true slow-sql-millis: 2000 # 监控过滤器 diff --git a/src/main/resources/pic/diss-jiscuss.png b/src/main/resources/pic/diss-jiscuss.png new file mode 100644 index 0000000..e003c86 Binary files /dev/null and b/src/main/resources/pic/diss-jiscuss.png differ diff --git a/src/main/resources/pic/disscuss.png b/src/main/resources/pic/disscuss.png deleted file mode 100644 index 3ff087e..0000000 Binary files a/src/main/resources/pic/disscuss.png and /dev/null differ diff --git a/src/main/resources/pic/home-jiscuss.png b/src/main/resources/pic/home-jiscuss.png new file mode 100644 index 0000000..d577c9f Binary files /dev/null and b/src/main/resources/pic/home-jiscuss.png differ diff --git a/src/main/resources/pic/home.png b/src/main/resources/pic/home.png deleted file mode 100644 index 0acabb6..0000000 Binary files a/src/main/resources/pic/home.png and /dev/null differ diff --git a/src/main/resources/pic/login-jiscuss.png b/src/main/resources/pic/login-jiscuss.png new file mode 100644 index 0000000..6d44bf0 Binary files /dev/null and b/src/main/resources/pic/login-jiscuss.png differ diff --git a/src/main/resources/pic/login.png b/src/main/resources/pic/login.png deleted file mode 100644 index ca58e89..0000000 Binary files a/src/main/resources/pic/login.png and /dev/null differ diff --git a/src/main/resources/pic/reg-jiscuss.png b/src/main/resources/pic/reg-jiscuss.png new file mode 100644 index 0000000..9c89e26 Binary files /dev/null and b/src/main/resources/pic/reg-jiscuss.png differ diff --git a/src/main/resources/pic/tag-jiscuss.png b/src/main/resources/pic/tag-jiscuss.png new file mode 100644 index 0000000..5a2d27a Binary files /dev/null and b/src/main/resources/pic/tag-jiscuss.png differ diff --git a/src/main/resources/templates/admin/admin-commjs.ftl b/src/main/resources/templates/admin/admin-commjs.ftl new file mode 100644 index 0000000..0dff638 --- /dev/null +++ b/src/main/resources/templates/admin/admin-commjs.ftl @@ -0,0 +1,29 @@ +<#--jquery--> + + +<#--semantic-ui--> + +<#-- --> + + +<#-- +<#-- href="https://lib.baomitu.com/semantic-ui/2.4.1/semantic.min.css" rel="stylesheet">--> + +<#----> + +<#--tinymce--> + + + +<#--layx--> + + + + + + + + diff --git a/src/main/resources/templates/admin/home.ftl b/src/main/resources/templates/admin/home.ftl new file mode 100644 index 0000000..161dc18 --- /dev/null +++ b/src/main/resources/templates/admin/home.ftl @@ -0,0 +1,338 @@ + + +后台管理首页 + + + + + <#--jquery--> + + + <#--semantic-ui--> + + + + + + <#--tinymce--> + + + + <#--layx--> + + + + + + + + + + + +
+ +
+
+ +
+
+ +
+
+
+

Dashboard

+
+
+
+ +
Label
+

Something else

+
+
+ +
Label
+

Something else

+
+
+ +
Label
+

Something else

+
+
+ +
Label
+

Something else

+
+
+ +
+

Section title

+
+
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
#HeaderHeaderHeaderHeader
1,001Loremipsumdolorsit
1,002ametconsecteturadipiscingelit
1,003IntegernecodioPraesent
1,003liberoSedcursusante
1,004dapibusdiamSednisi
1,005Nullaquissemat
1,006nibhelementumimperdietDuis
1,007sagittisipsumPraesentmauris
1,008Fuscenectellussed
1,009auguesemperportaMauris
1,010massaVestibulumlaciniaarcu
1,011egetnullaClassaptent
1,012tacitisociosquadlitora
1,013torquentperconubianostra
1,014perinceptoshimenaeosCurabitur
1,015sodalesligulainlibero
+
+
+
+
+ + + \ No newline at end of file diff --git a/src/main/resources/templates/comm/footer.ftl b/src/main/resources/templates/comm/footer.ftl index d917f87..228d316 100644 --- a/src/main/resources/templates/comm/footer.ftl +++ b/src/main/resources/templates/comm/footer.ftl @@ -1,6 +1,6 @@ <#--
--> -