This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
package testGetMapper; | |
import java.security.MessageDigest; | |
import java.security.NoSuchAlgorithmException; | |
/** | |
* A Java Implementation of the MD5Crypt function | |
* Modified from the GANYMEDE network directory management system | |
* released under the GNU General Public License | |
* by the University of Texas at Austin |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/* JavaScript password hash generator. | |
* $Id: pwd.js,v 1.5 2004/10/09 09:41:38 emikulic Exp $ | |
* | |
* Copyright (c) 2004, Emil Mikulic. | |
* All rights reserved. | |
* | |
* Redistribution and use in source and binary forms, with or without | |
* modification, are permitted provided that the following conditions | |
* are met: | |
* 1. Redistributions of source code must retain the above copyright |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
以下配置在springboot-1.4.1下测试通过 | |
import com.alibaba.druid.pool.DruidDataSource; | |
import com.alibaba.druid.support.http.StatViewServlet; | |
import com.alibaba.druid.support.http.WebStatFilter; | |
import com.github.pagehelper.PageHelper; | |
import org.apache.commons.lang3.StringUtils; | |
import org.apache.ibatis.plugin.Interceptor; | |
import org.apache.ibatis.session.SqlSessionFactory; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
package mongodbdemo.config; | |
import java.util.Locale; | |
import org.slf4j.Logger; | |
import org.slf4j.LoggerFactory; | |
import org.springframework.context.annotation.Bean; | |
import org.springframework.context.annotation.ComponentScan; | |
import org.springframework.context.annotation.Configuration; | |
import org.springframework.context.support.ReloadableResourceBundleMessageSource; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import com.chen.utils.LoggerUtil; | |
import com.google.common.util.concurrent.RateLimiter; | |
import org.springframework.web.servlet.HandlerInterceptor; | |
import org.springframework.web.servlet.ModelAndView; | |
import javax.servlet.http.HttpServletRequest; | |
import javax.servlet.http.HttpServletResponse; | |
public class SimpleRateLimitInterceptor implements HandlerInterceptor { |