
spring boot
wcdunf
这个作者很懒,什么都没留下…
展开
-
idea 调试远程docker中的spring boot 项目
idea 调试远程docker中的spring boot 项目idea-2023 ,放心,旧版本也可以远程调试原创 2023-05-24 11:16:32 · 1559 阅读 · 1 评论 -
spring boot 注入bean、使用bean
spring boot 注入bean、使用bean原创 2022-06-06 12:05:43 · 234 阅读 · 0 评论 -
mybatis plus 多条件分页查询 if 嵌套写法
mapper.xml<select id="pageSelectList" resultMap="BaseResultMap" parameterType="DwdSchoolQuery" flushCache="true"> select * from dwd_school <where> --- 学校名称 <if test="params.schoolNa原创 2021-05-25 12:23:58 · 5444 阅读 · 2 评论 -
2021-03-19 springboot 获取Resource 目录下的配置文件
ClassPathResource classPathResource = new ClassPathResource("config.json"); //@Cleanup 释放流 @Cleanup InputStream inputStream = classPathResource.getInputStream();原创 2021-03-19 17:36:00 · 411 阅读 · 0 评论 -
mysql 存储微信表情
mysql保存emoji表情(微信开发用户昵称..)java.sql.SQLException: Incorrect string value: '\xF0\x9F\x92\x94' for colum n 'name' at row 1 at com.mysql.jdbc.SQLError.createSQLException(SQLError.java:1073) at c...原创 2020-04-03 08:00:00 · 691 阅读 · 0 评论 -
idea 调试服务器项目
提出问题: 一个程序,部署在自己的电脑上,debug调试,相信大家都会,但是,如果我想debug调试非本地部署的程序怎么办呢。比如测试服务器上部署的程序。 其实这样的需求也是经常有的,比如一个大型的项目有很多模块,也有很多自己的或外部的依赖,不可能在自己电脑上整个都搭建一整套完整的环境。先不管有多复杂,有时候公司的电脑配置再不给力,部署一个大型程序更是雪上加霜。通常这样的程...原创 2020-02-22 19:53:13 · 981 阅读 · 0 评论 -
layui table 传对象参数,springboot框架接收参数方法
<script> layui.use(['element', 'table', 'form', 'laydate'], function () { var element = layui.element; var table = layui.table; var form = layui.for...原创 2020-02-08 17:41:01 · 4396 阅读 · 0 评论 -
解决FTPClient.retrieveFileStream()读取为null的解决方法
前提:FTPClient能登录成功,changeWorkingDirectory返回true;文件名无误。代码: /** * @Author WangChangDian * @Description //TODO 判断文件是否存在 * @Date 18:18 2020/2/1 * @param filePath--指定绝对路径的文件 * ...原创 2020-02-01 22:13:25 · 19927 阅读 · 0 评论 -
java 解决绝对路径中文乱码
String path1 = ResourceUtils.getURL("classpath:static").getPath(); String s = path1.replaceAll("%20", " "); String decode = URLDecoder.decode(path1, "u...原创 2019-12-25 15:22:25 · 2729 阅读 · 1 评论 -
spingMVC重定向携带参数工具
刚才做项目,遇到了redirectAttributes使用的问题,上网找了找,看到一篇写的很不错的博客,解决我对于RedirectAttributes的困惑,也给大家推荐下。原文链接:href="https://zhuanlan.zhihu.com/p/21353217?refer=pengsong-javaRedirectAttributes是Spring mvc 3.1版本之后出来的...原创 2019-12-24 19:25:37 · 132 阅读 · 0 评论 -
ssm/springboot 获取请求中所有的数据
Map<String, String[]> parameterMap = request.getParameterMap();原创 2019-09-05 15:44:40 · 970 阅读 · 0 评论 -
spring boot 能调用seviceImpl中的方法的定时器
在启动类上加上 @EnableScheduling 注解package com.nanfan.core.utils;import com.nanfan.core.service.impl.OrdersServiceImpl;import org.springframework.beans.factory.annotation.Autowired;import org.spr...原创 2019-08-29 09:44:39 · 355 阅读 · 0 评论 -
Spring Boot使用@Scheduled定时器任务
摘要: Spring Boot之使用@Scheduled定时器任务 假设我们已经搭建好了一个基于Spring Boot项目,首先我们要在Application中设置启用定时任务功能@EnableScheduling。启动定时任务package com.scheduling;import org.springframework.boot.SpringApplication...原创 2019-08-28 10:55:11 · 341 阅读 · 0 评论 -
spring boot 整合mybatis 分页插件pagehelper
<!--mybatis分页插件--> <dependency> <groupId>com.github.pagehelper</groupId> <artifactId>pagehelper</artifactId> <ver...原创 2019-06-01 10:23:45 · 256 阅读 · 0 评论 -
spring boot 各种集成环境介绍
集成环境Name Description 备注 spring-boot-starter-thymeleaf 使MVC Web applications 支持Thymeleaf Thymeleaf是一个JAVA库,一个XML/XHTML/HTML5的可扩展的模板引擎,同类事物:Jsp spring-boot-starter-data-couchbase 使用...原创 2019-04-23 19:20:45 · 173 阅读 · 0 评论