dog | bird | cat
----|------|----
foo | foo | foo
bar | bar | bar
baz | baz | baz
dog | bird | cat
| @Autowired | |
| Environment env; |
| test { | |
| useTestNG(){ | |
| suites(file('src/test/resources/testng.xml')) | |
| } | |
| } |
| Properties prop = new Properties(); | |
| try { | |
| prop.load(this.getClass().getClassLoader().getResourceAsStream("properties/application.routing.properties")); | |
| } catch (IOException e) { | |
| e.printStackTrace(); | |
| } | |
| prop.getProperty(strVal, strVal); |
dog | bird | cat
----|------|----
foo | foo | foo
bar | bar | bar
baz | baz | baz
dog | bird | cat
| textarea:focus, input:focus{ | |
| outline: 0; | |
| } |
| textarea { | |
| resize: none; | |
| } | |
| /*Or, if need only vertical resize:*/ | |
| textarea { | |
| resize: vertical; | |
| } |
| //1000 - 9999 | |
| Random generator = new Random(); | |
| int id = generator.nextInt(9999) + 1000; |
| //加前缀& | |
| getBean("&factorybeanid") |
##设定加载顺序,数字大的优先加载
<context:property-placeholder location="classpath*:/context2.properties" order="0"/>
<context:property-placeholder location="classpath*:/context.properties" order="100"/>context2.properties将覆盖context.properties中的值。
##覆盖其它properties
##注册一个servlet
@WebServlet(name = "captcha-servlet", value = "/getcaptcha")
public class CaptchaServlet extends HttpServlet {
}GenericServlet要使用HttpServlet