Run the OnlyOffice Java Spring demo project in local

Content

  • [1.Download the sample project in java](#1.Download the sample project in java)
  • [2.Run the project](#2.Run the project)
  • [3.Test the example document](#3.Test the example document)

Before you run your java Spring project in your local server, there are several prepare works:

  1. Remote onlyoffice server is running
  2. The local java environment can run java application: JDK 11 or later version, maven

1.Download the sample project in java

Link: download the sample code in official website

document properties setting

propeties 复制代码
# the server of local spring project
server. Address=192.166.64.5
server.Port=4000
# the directory to store the files in local server
storage-folder = app_data

# documentary  server, we user docker image in a  ubuntu virtual machine. If you don't have install the OnlyOffice, you could watch my other blog.

files.docservice.url.site=http://192.166.64.26:8800/


# You have to attention this setting, if you set the JWT function in OnlyOffice
files.docservice.secret=my_jwt_secret

2.Run the project

Use this terminal to get IP of local server

shell 复制代码
 ifconfig

3.Test the example document

You can find the setting of OnlyOffice welcome page:

run these command in document server.

in you browser, you will get the an online editor.

相关推荐
典龙3306 小时前
如何使用springboot项目如何实现小程序里面商品的浏览记录功能案例
spring boot
customer087 小时前
【开源免费】基于SpringBoot+Vue.JS个人博客系统(JAVA毕业设计)
java·vue.js·spring boot·后端·开源
qq_459238497 小时前
SpringBoot整合Redis和Redision锁
spring boot·redis·后端
灰色人生qwer7 小时前
SpringBoot 项目配置日志输出
java·spring boot·后端
2301_793069827 小时前
Spring Boot +SQL项目优化策略,GraphQL和SQL 区别,Spring JDBC 等原理辨析(万字长文+代码)
java·数据库·spring boot·sql·jdbc·orm
Earth explosion7 小时前
Spring Boot:开启快速开发新时代
spring boot
hhw1991127 小时前
spring boot知识点5
java·数据库·spring boot
customer087 小时前
【开源免费】基于SpringBoot+Vue.JS打卡健康评测系统(JAVA毕业设计)
java·vue.js·spring boot·后端·开源
ONEPEICE-ing9 小时前
快速入门Springboot+vue——MybatisPlus多表查询及分页查询
前端·vue.js·spring boot·mybatis
paterWang9 小时前
基于SpringBoot的驾校报名小程序系统设计与实现(源码+文档)
spring boot·后端·小程序