zrk1000 / spring-boot-mvc-ueditor-qiniu Goto Github PK
View Code? Open in Web Editor NEWspring boot 、springMVC环境集成百度ueditor富文本编辑器,使用七牛云存储图片
spring boot 、springMVC环境集成百度ueditor富文本编辑器,使用七牛云存储图片
@SpringBootApplication
@ComponentScan(basePackages = {"com.zrk","com.baidu"})
@EnableSwagger2
public class Application {
public static void main(String[] args) {
SpringApplication.run(Application.class, args);
}
@RequestMapping("/")
public String index(){
return "ueditor";
}
}
旧的swagger2文档被ueditor覆盖了,只显示ueditor的接口文档了,其他的都丢失了,要怎么解决?
我将您的源码和demo整合在一起成功了,但是我有个疑问,那就是如何把application中的那个controller移到controller.java中,使得application中只剩下
public static void main(String[] args) {
SpringApplication.run(Application.class, args);
}
这一个函数呢?spring初学者,希望作者能帮帮忙,解解惑。
上传图片的时候提示这个
XMLHttpRequest cannot load http://172.30.1.XXX:8011/ueditor/upload?action=uploadimage&encode=utf-8. Response to preflight request doesn't pass access control check: No 'Access-Control-Allow-Origin' header is present on the requested resource. Origin 'http://localhost:8080' is therefore not allowed access. The response had HTTP status code 403.
Run AS 启动可以上传图片,为啥部署到tomcat就不行了?404找不到路径。。。
没有这个maven坐标,是不是忘记上传了?
@zrk1000 最近在使用这个插件,发现替换自己的七牛账号,遇到了相关的问题,替换我自己的七牛账号遇到了上传,io错误 具体看了一下代码,发现 :error:incorrect zone, please use up-z1.qiniu.com
区域不支持,最后在尝试换区重新创建解决此问题,使用本插件必须使用 七牛的 华东区 !-_-相当吐血,是否可以考虑支持一下新版本的七牛sdk ?
上传视频返回的url会变成jpg, 上传的其实是mp4, 要怎么解决呢?
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.