##java
package com.demo;
public abstract class Service1 {
private static Service1 getInstance() {
return ServiceLoader.load(Service1.class).iterator().next();
}
}##java
package com.demo;
public abstract class Service1 {
private static Service1 getInstance() {
return ServiceLoader.load(Service1.class).iterator().next();
}
}| <servlet-mapping> | |
| <servlet-name>default</servlet-name> | |
| <url-pattern>/static/*</url-pattern> | |
| </servlet-mapping> |
0,000 000 000 000 000 000 000 001 yoctosecond [ ys ]
0,000 000 000 000 000 000 001 zeptosecond [ zs ]
0,000 000 000 000 000 001 attosecond [ as ]
0,000 000 000 000 001 femtosecond [ fs ]
0,000 000 000 001 [ trillionth ] picosecond [ ps ]
0,000 000 001 [ billionth ] nanosecond [ ns ]
0,000 001 [ millionth ] microsecond [ µs ]
0,001 [ thousandth ] millisecond [ ms ]
0.01 [ hundredth ] centisecond [ cs ]
##注册一个servlet
@WebServlet(name = "captcha-servlet", value = "/getcaptcha")
public class CaptchaServlet extends HttpServlet {
}GenericServlet要使用HttpServlet
##设定加载顺序,数字大的优先加载
<context:property-placeholder location="classpath*:/context2.properties" order="0"/>
<context:property-placeholder location="classpath*:/context.properties" order="100"/>context2.properties将覆盖context.properties中的值。
##覆盖其它properties
| //加前缀& | |
| getBean("&factorybeanid") |
| //1000 - 9999 | |
| Random generator = new Random(); | |
| int id = generator.nextInt(9999) + 1000; |
| textarea { | |
| resize: none; | |
| } | |
| /*Or, if need only vertical resize:*/ | |
| textarea { | |
| resize: vertical; | |
| } |
| textarea:focus, input:focus{ | |
| outline: 0; | |
| } |
dog | bird | cat
----|------|----
foo | foo | foo
bar | bar | bar
baz | baz | baz
dog | bird | cat