发表于: 2018-02-28 23:11:29
1 728
完成
用Tiles来完成页面的复用配置
配置文件如下
layout.xml
<?xml version="1.0" encoding="UTF-8" ?>
<!DOCTYPE tiles-definitions PUBLIC
"-//Apache Software Foundation//DTD Tiles Configuration 3.0//EN"
"http://tiles.apache.org/dtds/tiles-config_3_0.dtd">
<tiles-definitions>
<definition name="10" template="jsp/t10template.jsp">
<put-attribute name="title" value=""/>
<put-attribute name="header" value="/jsp/t10header.jsp"/>
<put-attribute name="menu" value=""/>
<put-attribute name="body" value="/jsp/t10body.jsp"/>
<put-attribute name="footer" value="/jsp/t10footer.jsp"/>
</definition>
<definition name="11" template="jsp/t11template.jsp">
<put-attribute name="title" value=""/>
<put-attribute name="header" value="/jsp/t11header.jsp"/>
<put-attribute name="menu" value=""/>
<put-attribute name="body" value="/jsp/t11body.jsp"/>
<put-attribute name="footer" value="/jsp/t11footer.jsp"/>
</definition>
</tiles-definitions>mvc配置文件
<beans xmlns="http://www.springframework.org/schema/beans"
xmlns:context="http://www.springframework.org/schema/context"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xmlns:p="http://www.springframework.org/schema/p"
xsi:schemaLocation="http://www.springframework.org/schema/beans
http://www.springframework.org/schema/beans/spring-beans-3.0.xsd
http://www.springframework.org/schema/context
http://www.springframework.org/schema/context/spring-context-3.0.xsd">
<!-- 在xml配置了这个标签后,spring可以自动去扫描base-pack下面或者子包下面的Java文件,
如果扫描到有@Component @Controller@Service等这些注解的类,则把这些类注册为bean -->
<context:component-scan base-package="com.wlj.tutorialspoint"/>
<!--viewResolver将把逻辑视图名解析为具体的view,通过这种策略模式,很容易更换其他视图模式-->
<bean class="org.springframework.web.servlet.view.InternalResourceViewResolver">
<property name="prefix" value="jsp/"/>
<property name="suffix" value=".jsp"/>
</bean>
<bean id="tilesViewResolver" class="org.springframework.web.servlet.view.tiles3.TilesViewResolver" p:order="1"/>
<bean id="tilesConfigurer" class="org.springframework.web.servlet.view.tiles3.TilesConfigurer">
<property name="definitions">
<list>
<value>classpath:layout.xml</value>
</list>
</property>
</bean>
</beans>tiles学习心得:https://www.jianshu.com/p/fe0cd090bd78
2.开始任务五,学习了DES算法(http://blog.chinaunix.net/uid-20318867-id-1705780.html)
在整个算法过程中, DES不停的移动比特位, 置换
流程如下:
参考http://z2009zxiaolong.iteye.com/blog/1562197写了一个例子,还在理解中
3.学习token
4.学习ASCII内码(http://tool.oschina.net/commons?type=4)
问题
DES算法没弄懂
收获
用debug模式调试代码,渐渐熟练
花时间了解了IDEA的基本操作
计划
学session,cookie
DES接着看
resin突然打不开了,修一修
评论