- 浏览: 142431 次
- 性别:
- 来自: 济南
最新评论
文章列表
C#调用IE浏览器或者默认浏览器
- 博客分类:
- C#
//调用系统默认浏览器
System.Diagnostics.Process.Start("explorer.exe", "http://www.baidu.com");
//调用系统默认浏览器
System.Diagnostics.Process.Start("http://www.baidu.com");
//调用IE浏览器
System.Diagnostics.Process.Start("iexplore.exe", "http: ...
从网上找了个Spring MVC框架系统,部署到Eclipse后准备启动,当Web.xml里面不配做context,Servlet,filter的时候,系统可以正常启动,但当配置了context,Servlet,filter的时候,系统无法正常启动,出现的错误信息为:
严重: A child container failed during start
java.util.concurrent.ExecutionException: org.apache.catalina.LifecycleException: Failed to start component [StandardEngi ...
Eclipse开发中常设置的内存参数
- 博客分类:
- Java
1:jre中的Default VM Arguments: -Xms256M -Xmx640M -XX:PermSize=256m -XX:MaxPermSize=768m2:Tomcat的Optional Java VM Arguments: -Xms256M -Xmx512M -XX:PermSize=256m -XX:MaxPermSize=512m3:eclipse.ini中: -vmargs-Xms256m-Xmx512m
严重: Exception sending context initialized event to listener instance of class org.springframework.web.context.ContextLoaderListener
org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'springSecurityFilterChain' defined in class org.springframework.security.config ...
新导入的系统,jsp前段页面出现错误提示:
javax.servlet.jsp.JspException cannot be resolved to a type
原因是没有javax.servlet-api。
若是maven构建的项目,将至引入pom.xml中,
<dependency>
<groupId>javax.servlet</groupId>
<artifactId>javax.servlet-api</artifactId>
<version>${servlet.version}</ ...
部署系统时,弹出框中提示如下错误:
Error reading file D:\Program Files\repository\ojdbc\ojdbc\6\ojdbc-6.jar
D:\Program Files\repository\ojdbc\ojdbc\6\ojdbc-6.jar (系统找不到指定的路径。)
maven加载依赖无法加载上,需手动添加。
在配置好Maven环境变量的前提下,下载指定的jar包,如ojdbc-6.jar。
然后,在cmd命令行下,找到jar存放的位置,手动加载:
mvn install:install-file -DgroupI ...
存储过程拆分字段,形成表
- 博客分类:
- SQL Server
一、拆分的存储过程
ALTER FUNCTION [dbo].[GLXSDeal_F](@guid VARCHAR(50),@str varchar(1000),@flag VARCHAR(10))
Returns @tableName Table
(
taskGuid VARCHAR(50),
str2table varchar(50)
)
As
--该函数用于把一个用逗号分隔的多个数据字符串变成一个表的一列, ...
sql server数据库常用语句
- 博客分类:
- SQL Server
1、创建索引的语句
create index 索引名 on 表(字段1,字段2,、、、);
如
create index index_AttachFile on AttachFile(CBillGuid,CGuid,DCreateTime);
此种默认方式创建的索引为非聚集索引。
建立非聚集索引,可以使用nonclustered 关键字。
如create nonclustered index 索引名 on 表(字段1,字段2,、、、);
若建立聚集索引,使用如下sql:
CREATE CLUSTERED INDEX CLUSTER_id
jquery引入dialog
- 博客分类:
- Jquery
1、jquery ui dialog
简单应用,引入如下即可:
<link rel="stylesheet" href="js/jquery-ui/themes/base/jquery.ui.all.css" type="text/css"></link>
<script type="text/javascript" src="js/jquery-ui/js/ui/jquery.ui.core.js"></script>
<scrip ...
在Java Web开发中,Session为我们提供了很多方便,Session是由浏览器和服务器之间维护的。
Session超时理解为:浏览器和服务器之间创建了一个Session,由于客户端长时间(休眠时间)没有与服务器交互,服务器将此Session销毁,客户端再一次与服务器交互时之前的Session就不存在了。
设置Session超时时间方式:
方式一: 在web.xml中设置session-config如下: <session-config> <session-timeout>2</session-timeout> </session- ...
html中,链接a的href和onclick
- 博客分类:
- JS
以前在写<A>的href和onclick一直很随意,今天无意中看到介绍这一块的网页,感觉很受用。
在Javascript中void是一个操作符,该操作符指定要计算一个表达式但是不返回值。
void 操作符用法格式如下: 1. javascript:void (expression) 2. javascript:void expression
expression 是一个要计算的 Javascript 标准的表达式。
表达式外侧的圆括号是选的,但是写上去是一个好习惯。 (实现版本 Navigator 3.0)
可以使用 void 操作符指定超级链接。
表达式会被计算 ...
1、return RedirectToAction(),重定向到括号内的action控制的页面。可以传递参数。
比如:return RedirectToAction(_cViewPage, new {taskType=taskType });
taskType为要传递的参数。
这种形式的传递参数,参数放在了ViewData里面,所以,前台获取参数的方式为:
<input id="taskType" name="taskType" type="hidden" value='@ViewData["taskT ...
ContextLoaderListener和Spring MVC中的DispatcherServlet
一、注解,自动装载
@Autowired
private HttpServletRequest request;
二、web.xml中配置一个监听
<listener>
<listener-class>
org.springframework.web.context.request.RequestContextListener
Spring基础
- 博客分类:
- Spring MVC
- Spring
一、获取servletContext springMvc获取servletContext
WebApplicationContext webApplicationContext = ContextLoader.getCurrentWebApplicationContext();
ServletContext servletContext = webApplicationContext.getServletContext();
二、获得serveltContext的方 ...