
java后端
AntennaBabby
这是一个300字以内的简介!!
展开
专栏收录文章
- 默认排序
- 最新发布
- 最早发布
- 最多阅读
- 最少阅读
-
java判断中文字符是否包含生僻字
RT. public class test01 { public static Boolean isLessUseWord(String org) throws UnsupportedEncodingException { return org.equals(new String(org.getBytes("gb18030"),"gb2312")); } public static void main(String[] args) throws Excepti原创 2021-04-14 11:17:46 · 4618 阅读 · 0 评论 -
SpringBoot使用杀死线程关闭服务后Eureka不下线
SpringBoot使用kill -9 杀死线程关闭服务后Eureka不下线,可以尝试使用kill -15 来结束.原创 2020-11-18 09:48:32 · 914 阅读 · 0 评论 -
SpringMVC 的RedirectAttributes
作用:携带model 重定向跳转到下一controller @RequestMapping(value = "smap") public String getSmap(RedirectAttributes redirectAttributes) throws IOException{ StringalertInfo="操作成功!!"; redirectAttributes.addFlashA...原创 2019-06-13 09:53:15 · 240 阅读 · 0 评论 -
JAVA Properties读取:
一种简单方式.这种就可以适应多数场景: 通过 ResourceBundle.getBundle() 静态方法来获取(ResourceBundle是一个抽象类),这种方式来获取properties属性文件不需要加.properties后缀名,只需要文件名即可 1//config为属性文件名,放在包com.test.config下,如果是放在src下,直接用config即可 2...转载 2019-06-11 11:32:25 · 287 阅读 · 0 评论 -
@ModelAttribute 参数绑定类型转换报错(解决提交到后台的bigdecimal包含“,”导致转换失败前台返回错误400的问题)
在controller中添加 @InitBinderpublic void initBinder(WebDataBinder binder){binder.registerCustomEditor(BigDecimal.class, new BigDecimalEditor());//BigDecimalEditor为转换器} 添加class /*** created b...原创 2019-06-11 11:30:58 · 1613 阅读 · 0 评论 -
Idea自动补全返回值
Ctrlaltv转载 2019-06-11 11:26:20 · 9823 阅读 · 3 评论 -
SpringMVC 获取参数map
// 从页面获取数据public IMap(HttpServletRequest request) { this.request = request; // 返回值MapHashMapreturnMap = new HashMap(); // 参数MapMap properties = request.getParameterMap();Set<Map.En...转载 2019-06-11 11:25:45 · 824 阅读 · 0 评论 -
Java URL编码解码
result = java.net.URLDecoder.decode(str, "UTF-8"); result = java.net.URLEncoder.encode(str, "UTF-8");原创 2019-06-11 11:23:02 · 837 阅读 · 2 评论 -
mybatis resulttype 和resultmap
使用resultType进行输出映射,只有查询出来的列名和pojo中的属性名一致,该列才可以映射成功。 如果查询出来的列名和pojo的属性名不一致,通过定义一个resultMap对列名和pojo属性名之间作一个映射关系。 ...转载 2019-06-11 11:21:59 · 213 阅读 · 0 评论 -
mybatis的mapping文件中出现小于号导致报错
原符号 < <= > >= & ' "替换符号<<=>>=&'" 更多见下表转载 2019-06-11 11:20:58 · 767 阅读 · 0 评论 -
nginx自动检测后台服务器健康状态
转载自:https://www.cnblogs.com/jym-sunshine/p/6126802.html 插个眼省的用到的时候着急. 一、ngx_http_proxy_module 模块和ngx_http_upstream_module模块(自带) 严格来说,nginx自带是没有针对负载均衡后端节点的健康检查的,但是可以通过默认自带的ngx_http_proxy_mo...转载 2019-06-13 09:51:56 · 2205 阅读 · 0 评论