##注册一个servlet
@WebServlet(name = "captcha-servlet", value = "/getcaptcha")
public class CaptchaServlet extends HttpServlet {
}
GenericServlet
要使用HttpServlet
/** | |
* This code uses Apache Chemistry (http://chemistry.apache.org/). | |
* License accords to Apache License, Version 2.0 (http://www.apache.org/licenses/LICENSE-2.0) | |
*/ | |
import java.io.ByteArrayInputStream; | |
import java.io.UnsupportedEncodingException; | |
import java.util.HashMap; | |
import java.util.Iterator; | |
import java.util.Map; |
##注册一个servlet
@WebServlet(name = "captcha-servlet", value = "/getcaptcha")
public class CaptchaServlet extends HttpServlet {
}
GenericServlet
要使用HttpServlet
/** | |
* http://stackoverflow.com/questions/13459718/could-not-serialize-object-cause-of-hibernateproxy | |
* | |
* in bootstrap: | |
* import hbadapter.HibernateProxyTypeAdapter | |
* | |
* class BootStrap { | |
* | |
* def init = { servletContext -> | |
* |
// Node.js CheatSheet. | |
// Download the Node.js source code or a pre-built installer for your platform, and start developing today. | |
// Download: http://nodejs.org/download/ | |
// More: http://nodejs.org/api/all.html | |
// 0. Synopsis. | |
// http://nodejs.org/api/synopsis.html |
package de.idealo.ecommerce.order.history.config; | |
import java.util.Arrays; | |
import java.util.stream.StreamSupport; | |
import org.slf4j.Logger; | |
import org.slf4j.LoggerFactory; | |
import org.springframework.context.event.ContextRefreshedEvent; | |
import org.springframework.context.event.EventListener; | |
import org.springframework.core.env.AbstractEnvironment; |
Code is clean if it can be understood easily – by everyone on the team. Clean code can be read and enhanced by a developer other than its original author. With understandability comes readability, changeability, extensibility and maintainability.