06 2020 档案

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