- 博客(6)
- 收藏
- 关注
原创 680. Valid Palindrome II
class Solution { public boolean validPalindrome(String s) { int cnt = 0; if(checkStr(s, cnt)) { if(cnt < 2) { return true; } } ...
2019-04-30 16:32:18 146
原创 826. Most Profit Assigning Work
思路:如何处理3个数组之间的映射关系class Solution { public int maxProfitAssignment(int[] difficulty, int[] profit, int[] worker) { int[] index = new int[worker.length]; for(int i = 0; i < wor...
2019-04-24 19:52:57 215
转载 一致性哈希实现
public class ConsistenHashWithVN { private static String[] servers = { "192.168.0.0:111", "192.168.0.1:111", "192.168.0.2:111", "192.168.0.3:111",...
2019-04-24 15:35:25 167
原创 class path resource [applicationContext.xml] cannot be opened because it does not exist
1.建maven项目2.在pom中添加依赖<dependencies> <dependency> <groupId>org.springframework</groupId> <artifactId>spring-context</artifactId> <version>4....
2019-04-23 17:19:44 3751
原创 Java中的classpath
Java项目一般会有很多配置文件怎么将这些文件加载到Java代码里?Spring是这么用的:看到一个奇怪的东东:classpath前缀,这是啥?这个问题放一放,来看编译后的jar包目录:继续展开目录得到:看到了吧,所有的配置文件都在classes目录下,那么classpath是啥呢?你可以理解为就是编译后的classes下的路径!...
2019-04-19 20:44:45 172
原创 MyBatis调用存储备份过期数据
创建存储过程:delimiter #create procedure sps.backup_coupon_history_data(IN beginIndex INT, IN endIndex INT)begin INSERT INTO sps_active_rp_detail_his_2019 select * from sps_active_rp_detail whe...
2019-04-04 13:55:18 510
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人