06 2020 档案
摘要:1、在shiro的配置文件中配置。 <!-- 会话管理器 --> <bean id="sessionManager" class="org.apache.shiro.web.session.mgt.DefaultWebSessionManager"> <!-- 设置超时时间 --> <propert
阅读全文
摘要:搜狐IP地址查询接口(可设置编码):http://pv.sohu.com/cityjson?ie=utf-8 下面是使用方法: <script src="http://pv.sohu.com/cityjson?ie=utf-8"></script> <script type="text/javasc
阅读全文
摘要:truncate table table_name; 当中的‘table_name’为需要归零的表。 还可以删除表的主键,重新创建一个主键。
阅读全文
摘要:SimpleDateFormat sdf = new SimpleDateFormat("yyyy-MM-dd");//格式化规则 Date date = byId.getCreationTime();//获得要处理的时间 Date型 String strDate= sdf.format(date)
阅读全文
摘要:在Spring—Mvc的xml文件中添加: <!-- thymeleaf模板--> <bean id="templateResolver" class="org.thymeleaf.spring4.templateresolver.SpringResourceTemplateResolver"> <
阅读全文
摘要:<a th:href="${#httpServletRequest.getContextPath()}"></a> 如Web项目名称为Demo,那么${#httpServletRequest.getContextPath()}获取到的值为Demo
阅读全文
摘要:.zxbm_xf{ position: fixed; z-index: 999; left: 0; top: 0; bottom: 0; right: 0; margin:auto; } 这样DIV元素就可以在页面居中显示了
阅读全文
摘要:<textarea style="resize:none;"></textarea> 在默认情况下,我们可以发现textarea右下角可以进行拖动,这样容易破坏已经设计好的页面样式,想要设置不可拖动,添加如上代码即可
阅读全文

浙公网安备 33010602011771号