原理:1.通过Configuration().configure();读取并解析hibernate.cfg.xml配置文件2.由hibernate.cfg.xml中的读取并解析映射信息3.通过config.buildSessionFactory();//创建SessionFactory4.sessi...
分类:
其他好文 时间:
2014-11-03 12:48:30
阅读次数:
204
自定义实现Android百度地图的缩放图标,需要自定义一个缩放控件,实现效果如下:
这里的缩放效果,实现了点击按钮可以对地图的放大缩小,通过手势放大与缩小也控制缩放图标的可用状态。具体实现如下:
首先是drawable目录下的两个xml配置文件:
zoom_selector_in.xml
zoom_selector_out.xml
...
分类:
移动开发 时间:
2014-11-03 11:28:57
阅读次数:
269
个人感觉还是这种方式配置方式最灵活了。 package?com.baobaotao.conf;
public?class?LogDao?{
????public?void?print(){
????????System.out.println("helloworld");
????}
} package?c...
分类:
编程语言 时间:
2014-11-02 22:40:26
阅读次数:
344
(1)struts.xml配置文件中 result的name属性要跟业务逻辑处理类(Action类)中的函数返回的字符串能匹配得上(2)修改过struts.xml以及Action类后需要重新再服务器中更新web项目(redeploy)(3)相同业务逻辑对应的jsp页面最好分文件夹存放,不然显得jsp...
分类:
其他好文 时间:
2014-11-02 00:35:18
阅读次数:
205
ThereisnoActionmappedfornamespace/andactionnamelogin.-[unknownlocation]解决方式将struts.xml配置文件中的package标签中的namespace属性写成 namespace="";解释笔记struts2中是采用元素来管理...
分类:
其他好文 时间:
2014-11-01 21:49:06
阅读次数:
173
最近公司运用springboot构建项目,确实比ssh搭建要快很多。springboot官方学习网站1.首先要下载maven,用maven管理项目很方便,下载完maven配置好环境,maven我就不细说了。2.创建一个maven项目,pom.xml文件里面写这些: 4.0.0 sprin...
分类:
编程语言 时间:
2014-10-31 18:59:51
阅读次数:
552
com.richfit.MobileBI企业决策分析企业决策分析.. that represents application version which can be used to check for application upgrade. Values can also be 1-par...
分类:
移动开发 时间:
2014-10-31 15:30:32
阅读次数:
326
<?xml?version="1.0"?>
<?xml-stylesheet?type="text/xsl"?href="configuration.xsl"?>
<!--?Put?site-specific?property?overrides?in?this?file.?-->
<configuration>
<property>
<name>plugi...
分类:
其他好文 时间:
2014-10-31 13:59:24
阅读次数:
135
首先在lib下导入struct2相应的jar包
在web.xml配置struct2过滤器
struts2
org.apache.struts2.dispatcher.FilterDispatcher
struts2
/*
Model,业务逻辑层,验证用户名和密码,暂定都为"admin"。当然如果嵌入项目中,验证的数据可以从数据库提取
Lo...
分类:
其他好文 时间:
2014-10-30 00:23:35
阅读次数:
245