- 浏览: 594431 次
- 性别:
- 来自: 深圳
-
最新评论
-
明明如月:
这个方法不错
解决Failed to execute goal org.apache.maven.plugins -
srhlwdamon:
可是我的为什么解决不了。。。。。。。。。!!
解决Failed to execute goal org.apache.maven.plugins -
di1984HIT:
写的不错。
Memcached 在window下部署和测试示例 -
只为学英语:
正解,十分感谢
解决Failed to execute goal org.apache.maven.plugins -
落雪封:
谢谢,解决了,少导入jar包了
Spring MVC 的json问题(406 Not Acceptable)
文章列表
mvc:annotation-driven
- 博客分类:
- Spring
This tag registers the DefaultAnnotationHandlerMapping and
AnnotationMethodHandlerAdapter beans that are required for Spring MVC to
dispatch requests to @Controllers.
也就是说配置了<mvc:annotation-driven />就不需要配置
DefaultAnnotationHandlerMapping
和
org.springframework.web.servle ...
<mvc:annotation-driven />的缺失导致:
当请求:
@RequestMapping("json1")
public @ResponseBody UserType json1(Model model){
return userTypeService.getById(6);
}
将会提示:
修改PHP wamp5和apache的端口
- 博客分类:
- PHP
1.打开httpd.conf文件,找到且改为 Listen
11123
和 ServerName localhost:
11123
2.
修改右下角菜单项打开页面的端口:
打开
wampmanager.tpl
文件
[Menu.Left]
;WAMPMENULEFTSTART
Type: separator; Caption: "Powered by Alter Way"
Type: item; Caption: "${w_localhost}"; Action: r ...
.net framework 3.5装不上的根本解决方案:
1.或许你装过:dotnetfx_cleanup_tool,尝试清除所有版本的framework,发现无效
2.庆幸地,如下方法可以解决:
->打开注册表
->找到
HKEY_LOCAL_MACHINE\SOFWARE\Microsoft\Internet Explorer下
->右击
MAIN子键
->选择"权限"
改成"允许完全控制"就行了.
1.检查是否需要挂起计算机重新启动
解答:
在"开始"-"运行"中输入regedit,进入注册表编辑器,依次查找 HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\Session Manager,找到“PendingFileRenameOperations”值,并删除其中所有数据,之后就可以正常安装SQL Server
同时关闭360的所有产品:安全卫士+杀毒
2.未指定 INSTANCESHAREDWOWDIR 命令行值。如果指定INSTANCESHAREDDIR 值
不 ...
配置 ssh localhost
- 博客分类:
- Hadoop
LONMID@LONMID-PC ~$ ssh localhost
The authenticity of host 'localhost (::1)' can't be established.
ECDSA key fingerprint is 1a:24:f9:66:c1:7a:16:d0:04:7b:b8:ba:f8:57:52:a6.
Are you sure you want to continue connecting (yes/no)? yes
Warning: Permanently added 'localhost' (ECDSA) to the list of ...
配置ssh-host-config
- 博客分类:
- Hadoop
配置ssh-host-config:
LONMID@LONMID-PC ~
$ ssh-host-config
*** Query: Overwrite existing /etc/ssh_config file? (yes/no)
yes
*** Info: Creating default /etc/ssh_config file
*** Query: Overwrite existing /etc/sshd_config file? (yes/no) yes
*** Info: Creating ...
Spring事务托管的问题
- 博客分类:
- Spring
关于spring的事务管理的:
<!--事务通知-->
<tx:advice id="txAdvice" transaction-manager="transactionManager">
<tx:attributes>
<tx:method name="get*" read-only="true" />
<tx:method name="add*" propagation=&quo ...
新安装了myeclipse9,但某些项目出错了,提示:
Java compiler level does not match the version of the installed Java project fac
解决方案:
修改成自己的编译器级别:1.6
import java.util.ArrayList;
import java.util.Iterator;
import java.util.List;
import java.util.Random;
public class Mainer {
public static void main(String[] args) {
List flowers = new ArrayList();
for (int i = 0; i < 10; i++) {
flowers.add(FlowerGenerator.newFlower());
}
V ...
if(-[1,]){
alert("这不是IE浏览器!");
}else{
alert("这是IE浏览器!");
}
[转]
struts2:
http://struts.apache.org/download.cgi
hibernate:
http://sourceforge.net/projects/hibernate/files/
hibernate annotations:
http://www.brothersoft.com/hibernate-annotations-download-69011.html
hibernate-validator:
https://repository.jboss.org/nexus/conte ...
学习和部署 h2 database 算了, h2 database 是 hsqldb 的作者后来的又一力作
,更好用,更高效
1.hsqldb 有如下功能:
核心:
HyperSQL RDBMS Engine (HSQLDB)
HyperSQL JDBC Driver
扩展:
Database Manager (GUI database access tool, with Swing and AWT versions)
Sql Tool (command line database access tool) - sqltoo ...
1.复制 hsqldb.jar 到 "d:\db"
2.运行
hsqldb.jar
3.
4.先关闭后运行
运行:
public class TestHsqldb{
public static void main(String[] args) throws SQLException {
testConnection();
}
public static void testConnection() throws SQLException {
String path = "d:/ ...
1.登陆Action
/*
* action也需要在这个路径(/anno)下
* 如:@Action(value="/anno/login"
* */
//可以这样(在WEB-INF下):@ResultPath("/WEB-INF/jsps")
@ParentPackage("annoInterceptorPackage")
@ResultPath("/anno")
@Results({
@Result(name="error",location="a ...