牛骨文教育服务平台(让学习变的简单)
博客笔记

			
				通过Spring Session实现Session集中管理
通过Spring Session实现Session集中管理 2017-05-15
阅读原文 随着企业级JAVA应用的发展,目前这个领域已经出现了很大的革新,现代的发展趋势是微服务以及可水平扩展的原生云应用(Cloud native appli
27
2016-05
Base64Utils 在Java后台的扩展 2016-05-27
/** * Created by ruiyi on 2016/4/27. */ public class Base64Util { private static char[] base64EncodeChars = new char[] {"A", "B", "C", "D", "E", "F", "G", "H", "I", "J", "K", "L

			
				13、Spring工具类的使用
13、Spring工具类的使用 2016-05-22
Spring-core中提供了大量的工具类,常用的有StringUtils、ObjectUtils、NumberUtils、Base64Utils等,Spring工具类在spring-core.jar中的org.springframework.util包下。 StringUtils
03
2013-09
spring 集成shiro 之 自定义过滤器 2013-09-03
转:http://blog.csdn.net/shuishouhcd/article/details/9077379 最近一段时间,我一直在将shiro集成到我的一个项目中,用作认证和授权处理。             shir
08
2016-06
二分查找 —— 有序数组不小于(不大于)某数的第一个(最后一个)元素 2016-06-08
1. 不小于某数的第一个元素 def bisearch(l, e, lo, hi): while lo < hi: mi = (lo + hi)//2 if e > l[mi]: lo = mi + 1 else: hi = mi return hi 注: (1)不同于
23
2012-07
查找列表中某个值的位置(python) 2012-07-23
p=list.index(value) list为列表的名字 value为查找的值 p为value在list的位置   以下内容引自:http://www.linuxidc.com/Linux/2012-01/51638.htm Python3.2.2列表操作总结 lis
13
2017-03
从有序数组中查找某个值(二分) 2017-03-13
#include #include using namespace std; const int maxn = 10000; int a[maxn]; int n,k; void solve() { int lb=-1,ub=n; while(ub-lb>1) { int mid=(lb+ub)/2; if(a[mid]>=k)

			
				求出部分有序数组中的最大子数组(第一次出现)的长度及位置 (c++实现)
求出部分有序数组中的最大子数组(第一次出现)的长度及位置 (c++实现) 2015-04-26
在复习数据结构是,看到书中有这么一个题目: 求出部分有序数组中的最大子数组(第一次出现)的长度及位置  然后就简单的实现了下,难免有疏
12
2016-03
无序数组中是否包含某一个要找的元素的几种方法 2016-03-12
如何检查一个数组(无序)是否包含一个特定的值?这是一个在Java中经常用到的并且非常有用的操作。 1)使用list 里t Arrays.asList(arr).contains(targetValue)

			
				在排序的数组中二分查找一个元素,返回在数组中它第一次出现的位置
在排序的数组中二分查找一个元素,返回在数组中它第一次出现的位置 2011-10-02
可以参考stl中lower_bound算法。     #include "stdafx.h" #include using namespace std; int BinSearchFirst(int arr[], int begin, int end, int target) { int mid = 0; int half = 0; i