springboot
latin_06
这个作者很懒,什么都没留下…
展开
-
springboot 打成jar包后启动报没有主清单属性
springboot启动报没有主清单属性原创 2023-01-24 23:17:20 · 268 阅读 · 0 评论 -
springmvc 参数绑定cookie
@GetMapping("/index") public String toIndex(@CookieValue(required = false,value = "TOKEN") Cookie cookie, HttpSession session){ if(cookie!=null){ String token = cookie.getValue(); if(!StringUtils.isEmpty(token)){ .原创 2022-03-12 20:00:25 · 847 阅读 · 0 评论 -
idea 一直报log4j-slf4j-impl cannot be present with log4j-to-slf4j
看了网上的说法,都是如下的解决方法:解决冲突<dependency> <groupId>org.springframework.boot</groupId> <artifactId>spring-boot-starter</artifactId> <exclusions> <exclusion> <groupId>org原创 2021-01-01 19:40:48 · 2973 阅读 · 0 评论 -
idea springboot 修改css,jsp不重启实现页面更新
修改如下的配置:原创 2020-10-09 08:45:57 · 435 阅读 · 0 评论 -
hutool http 发送带有authorization token的请求
这里引入的http和json都是hutool的只要在post的时候设置.header("Authorization", token)就可以了。如下的请求是模拟postman的post body rawString urlRegister = "";JSONObject paramRegister = JSONUtil.createObj();// 包装sysUserMap<String,Object> user = new HashMap<>();user.p.原创 2020-09-16 20:54:25 · 7786 阅读 · 1 评论 -
spring Cloud zuul com.netflix.zuul.exception.ZuulException: Forwarding error
zuul报如下错误:com.netflix.zuul.exception.ZuulException: Forwarding erroryml增加如下配置: 此时还要再确定pom.xml的spring-boot-starter-parent版本不能为2.0.0.M3.我之前版本是这个的时候,一直报错(com.netflix.zuul.exception.ZuulException: Forwarding error)。后来改成2.0.2.RELEASE才行。网上很多说的是增加..原创 2020-08-12 23:27:09 · 774 阅读 · 0 评论 -
springcloud config Server报 Could not fetch remote for master remote:错误
今天在idea练习做springcloud config server的时候,地址栏输入http://localhost:8080/order-dev.yml,一直每办法出来xml格式的文件,如下:找了好久没有找到问题,而且控制台不报错,后面改变了控制台日志打印级别。yml中添加如下logging: level: com.netflix.discovery: 'OFF' org.springframework.cloud: 'DEBUG'如下图:控制台报如下错:原创 2020-08-09 02:24:29 · 3942 阅读 · 2 评论