- 博客(11)
- 收藏
- 关注
原创 springMVC非注解映射器、适配器和视图解析器
非注解映射器和适配器:MyController.java:HttpController.java:映射器BeanNameUrlHandlerMapping将bean(myController)的name作为url进行查找地址:http://localhost:8080/ssm-test/hello.doSimpleUrlHandlerMappingbean有多个URL与...
2019-07-27 00:12:00 185
原创 Spring Cloud与Docker微服务架构实战
4.6Eureka Server的高可用单个Eureka Server应用注意这2个配置属性必须关闭:register-with-eureka: false #关闭自我注册、fetch-registry: false #关闭自动获取注册信息构建双节点Eureka Server集群,配置Windows系统的hosts路径:C:\Windows\System32\drivers\etc4....
2019-07-19 16:40:14 201
原创 循环list,删除指定元素
Iterator<Map<String, Object>> it = list.iterator();while (it.hasNext()) { if(condition){ it.remove(); } }
2019-07-17 14:43:54 119
原创 SQL常用
【oracel 一个表更新另一个表的数据】merge into wms_item ausing temp_item bon(a.code=b.code)when matched thenupdate set a.number_oflabels = b.outer_qty,a.inner_box_label = b.inner_qty;【oracel 一个表更新另一个表的数据(筛选重...
2019-07-16 21:11:01 256
原创 后台方法
初始化remotepublic RowData initDispatchCarrierId(Map map) { RowData rowData = new RowData(); Long carrierId=null; if(map.get("modifyTmsDispathchByOrderPage.dispatch.id") == null) { List<Long...
2019-07-16 21:08:14 198
原创 将a和b,按照a分组,并将b存入list返回
public Map<Long, List> putMapByItem(List<Object[]> inventoryItems){Map<Long,List> map = new HashMap<Long,List>();for (Object[] objects : inventoryItems){Long itemID =(Long...
2019-07-16 21:05:09 184
原创 eclipse国际化地址
Name: Properties EditorLocation: http://propedit.sourceforge.jp/eclipse/updates/
2019-07-16 20:55:03 140
原创 adapterContext.xml定时任务的时间格式
秒 0-59 , - * /分 0-59 , - * /小时 0-23 , - * /日 1-31 , - * ? / L W C月 1-12 or JAN-DEC , - * /周几 1-7 or SUN-SAT , - * ? / L C #年 (可选字段) empty, 1970-2099 , - * /“1W”,它则表示每月1号往后最近的工作日触发“L” 表示最后的意思“...
2019-07-16 20:53:44 287
原创 HQL
规则表内容查询select t.name as "规则表名",v.bind1 as "仓库",d.creator as "创建人",d.reference1 as "查找参考项",d.value1 as "值参考项" from thorn_rule_table_detail d inner join thorn_version v on v.id = d.version_id ...
2019-07-16 18:05:45 129
原创 Map中value排序,返回key的list集合
对map中的value进行【降序】排序,返回对应的key的Listprivate List<Long> getMapKeyByValueMax(Map<Long, Integer> map) { List<Map.Entry<Long, Integer>> list = new ArrayList<Map.Entry<Long, I...
2019-07-16 17:44:41 1147
原创 Java数据类型曾用方法
【Double 转 String :保留三位小数】 Double double1 = 123456789.123456789; DecimalFormat decimalFormat = new DecimalFormat("#0.00");//格式化设置 System.out.println(decimalFormat.format(double1)); //结果:...
2019-07-16 17:22:33 1118
空空如也
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人