![](https://img-blog.csdnimg.cn/20201014180756724.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
开发遇到的一些问题解决方案
余生一个帆
每个男人都有一个大G梦
展开
-
Springboot解决跨域
只需写一个配置类就可解决:import org.springframework.context.annotation.Configuration;import org.springframework.web.servlet.config.annotation.CorsRegistry;import org.springframework.web.servlet.config.annotation.WebMvcConfigurationSupport;/** * @author fan ..原创 2021-09-18 09:37:34 · 210 阅读 · 1 评论 -
Java List remove时报UnsupportedOperationException
遇到的问题:解决后:源代码: /** * 需求:删除字符串中的a8,并重新组成字符串 * @param args */ public static void main(String[] args) { String str = "a3,a4,a5,a6,a8"; String[] moIds = str.split(StringPool.COMMA); //错误写法: // ..原创 2021-08-23 21:24:57 · 314 阅读 · 0 评论 -
centos7安装宝塔面板报错
我的服务器是云服务器版本是Centos 7 x86_64错误语句:ERROR: The BT-Panel service startup failed.解决方案:直接输入下面两行命令,然后重新安装即可pip uninstall publicbt restart重新安装:yum install -y wget && wget -O install.sh http://download.bt.cn/install/install_6.0.sh && sh in原创 2021-05-13 19:31:53 · 3367 阅读 · 2 评论 -
Springboot-web net::ERR_ABORTED 404(填坑)
遇到上面这个问题白白浪费了我一上午时间才解决,此次总结希望可以帮助遇到此坑的小伙伴!目录层级本项目使用的前后端在同一个项目中的Springboot-web已在yml配置文件中配置静态资源拦截,所以不用考虑在启动类中重写addResourceHandlers(ResourceHandlerRegistry registry)方法启动服务,访问controller层接口,并跳转到指定ht...原创 2020-04-09 11:37:20 · 8453 阅读 · 2 评论 -
输入框类型为datetime-local动态获取当前时间
先看显示效果:html代码:<input type="datetime-local" id="currentDate">jQuery代码: $(function(){ var today = new Date();//返回当前日期和时间 var yyyy = today.getFullYear();//获取当前年份 var MM = today.getM...原创 2019-07-26 15:47:39 · 3245 阅读 · 0 评论