springboot jar file path to the deployment problem ueditor rich text editor directory

After labeled jar deployment, upload files can not find the correct file path, because unlike tomcat jar that has a clear path to the file

1.application.properties add the following paragraph

When uncommented # upload file size limit spring.servlet.multipart.max-file-size = 500MBspring.servlet.multipart.max-request-size = 500MB # jar package deployment www.1b23.com # web.upload-path = h : / # web.front-path = h: / # spring.resources.static-locations = file: $ {web.upload-path}, file: $ {web.front-path}

Here h to drive, for example, may be a disk d, as the case may

2.   The uploadFiles copy to the H disk directory (uploadFiles directory to upload files, this is also the situation according to their own details)

Such upload files that are uploaded to the directory under the H-disk uploadFiles go inside

3. If ueditor file directory, copy all ueditor to the hard disk, the disk such as H

Change setting

plugins\ueditor\jsp\controller.jsp

In rootPath = rootPath + "/"; below

Plus a   rootPath =  "H: /"


Guess you like

Origin blog.51cto.com/14622073/2459185