摘要: 1. 方法上加注解@PostConstruct@Compantpublic class InitDemo{ @PostConstruct public void init(){ //项目启动就会执行这个方法 doSomething(); }}2.xml配置init-method<bean id="I 阅读全文
posted @ 2019-06-21 15:40 红尘524 阅读(1670) 评论(0) 推荐(0) 编辑
摘要: 解决方案: 1、更改web.xml中的版本 把DOCTYPE 引掉,然后在web-app中,黏贴如下代码 <web-app xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://java.sun.com/xml/ns/ 阅读全文
posted @ 2018-11-14 09:28 红尘524 阅读(664) 评论(0) 推荐(0) 编辑
摘要: @echo off 与@echo on 前者为关闭回显,后者为打开回显 当不想批处理文件中的命令一行一行在DOS中显示出来时,可以使用@echo off,将其放于程序的最上方就行了。 阅读全文
posted @ 2018-11-07 15:36 红尘524 阅读(289) 评论(0) 推荐(0) 编辑
摘要: 1.选择器 (1)通配符: ? 1 2 3 4 5 6 7 8 9 10 11 12 13 $("input[id^='code']");//id属性以code开始的所有input标签 $("input[id$='code']");//id属性以code结束的所有input标签 $("input[i 阅读全文
posted @ 2018-10-25 11:11 红尘524 阅读(277) 评论(0) 推荐(0) 编辑