javabean转map的方法 对象转map
借助于apache commens util包的BeanUtils
示例代码如下
Bean bean = new Bean()
Map map = BeanUtils.describe(bean);
借助于apache commens util包的BeanUtils
Bean bean = new Bean()
Map map = BeanUtils.describe(bean);
Map<String, String> params = new HashMap<>();
Map<String,String[]> requestParams = request.getParameterMap();
requestParams.forEach((key, value) -> {
params.put(key,value[0]);
});
uni-app 默认端口为8080,与tomcat的默认端口冲突。
解决方案一(临时方法)、先启动tomcat,再启动uni-app此时uni-app的端口自动修改为8081。
解决方案二、打开manifest.json,选择H5配置,设置端口即可。
"h5" : {
"devServer": {
"port": 8181
},
"router" : {
"mode" : "history"
}
详情参考:https://zh.uniapp.dcloud.io/collocation/manifest.html#h5


shutdown abort
startup mount
alter database datafile '/directory/filename' offline drop;//这里的datafile可以是表空间文件
alter database open;
drop tablespace ts_name;
很多项目都会有这种页面 左面图片 右边是文字,右边的的文字直接用边距把文字分开,有时候适配的话有的机型可能会有问题,然后我就查了一下flex有没有垂直居中的方法,然后发现了 flex-flow这个属性。这样可以精准控制 垂直布局了。
改变flex-flow的属性,让他垂直排列即可。
display:flex;
flex-flow: column; //垂直排列
justify-content: space-between;//两端对齐
