#ap

JSON字符串转换为Map

本文是利用阿里巴巴封装的FastJSON来转换json字符串的。例子如下: packagecom.zkn.newlearn.json;importcom.alibaba.fastjson.JSON;importcom.alibaba.fastjson.JSONObject;importjava.util.Ma...
代码星球 代码星球·2021-02-23

Java加载jar包外的配置文件,转为map获取参数

某些时候我们需要将配置文件外置,放在jar包外方便修改位置如图所示@Testpublicvoidceshi()throwsFileNotFoundException{FileInputStreaminputStream=newFileInputStream("cap.properties");try{byte[]b=n...

perl的map函数

perl的map函数的使用:语法mapEXPR,LIST    mapBLOCKLIST   定义和使用对list中的每个元素执行EXPR或BLOCK(代码块),返回新的list。对每一此迭代,$_中保存了当前迭代的元素的值。返回值如果返回值存储在scalar标量中,则代表map()返回数组的元素个数;如果返回值存储在...
代码星球 代码星球·2021-02-23

修改xampp-apache访问目录

一般情况下,每个项目占用一个根目录,而不是一个根目录下面有多个项目。比如说,安装xampp,xampp的安装路径为:D:安装好后,D盘下面就会有一个文件夹:xampp,如图:而默认的xampp的根目录是xampp文件夹下的htdocs文件夹,即根目录的路径为:D:xampphtdocs如果htdocs文件夹下有一个文件...

spring boot拦截器WebMvcConfigurerAdapter,以及高版本的替换方案(转)

文章转自 http://blog.51cto.com/12066352/2093750/最近项目采用springicloud,用的springboot版本是1.5.x的,springboot2.0,Spring5.0以后WebMvcConfigurerAdapter会取消掉。以下介绍下大体的内容,希望对大家都...

(十五)The Search API

Nowlet’sstartwithsomesimplesearches.Therearetwobasicwaystorunsearches:oneisbysendingsearchparametersthroughthe RESTrequestURIandtheotherbysendingthemthroug...
代码星球 代码星球·2021-02-23

Spring Security(三十七):Part IV. Web Application Security

MostSpringSecurityuserswillbeusingtheframeworkinapplicationswhichmakeuserofHTTPandtheServletAPI.Inthispart,we’lltakealookathowSpringSecurityprovidesauthenticati...

Spring Security(二十八):9.4 Authentication in a Web Application

Nowlet’sexplorethesituationwhereyouareusingSpringSecurityinawebapplication(without web.xml securityenabled).Howisauserauthenticatedandthesecurityconte...

Spring Security(二十五):7. Sample Applications

Thereareseveralsamplewebapplicationsthatareavailablewiththeproject.Toavoidanoverlylargedownload,onlythe"tutorial"and"contacts"samplesareincludedinthedistributio...

nested exception is org.apache.ibatis.reflection.ReflectionExceptio

org.mybatis.spring.MyBatisSystemException:nestedexceptionisorg.apache.ibatis.reflection.ReflectionException:Thereisnogetterforpropertynamed'parent_maintenance_n...

(转)yum提示Another app is currently holding the yum lock; waiting for it to exit...

文章转自yum下载东西突然卡主了,我直接ctrl+c退出,然后再次下载时候出现Anotherappiscurrentlyholdingtheyumlock;waitingforittoexit...解决: 方法一、1)查询进程#psaux|grepyumroot67440.00.0103260900pts/1...
代码星球 代码星球·2021-02-23

数据库结构-pingcap

                          &nbs...
代码星球 代码星球·2021-02-22

zookeeper启动报错:Error: Could not find or load main class org.apache.zookeeper.server.quorum.QuorumPeerMain

[root@analysisbin]$./zkServer.shstartZooKeeperJMXenabledbydefaultUsingconfig:/usr/local/zookeeper/apache-zookeeper-3.5.6/bin/../conf/zoo.cfgStartingzookeeper......
首页上一页...5556575859...下一页尾页