java框架常见问题汇总

0 框架入门

http://mp.weixin.qq.com/s/UJXU6ci_B0j-Zv9Yh6CwBw

1 Spring资讯列表 - ITeye资讯频道 (推荐)

http://www.iteye.com/news/tag/Spring|

http://www.iteye.com/news/32657

http://www.iteye.com/news/32550

2  @Test注解

http://blog.csdn.net/master_yao/article/details/51148871

3  基于xml的bean配置

http://blog.csdn.net/bestxiaok/article/details/53507150

4  viewcontrol service dao model 层间的关系

http://blog.csdn.net/zdwzzu2006/article/details/6086829

5  Spring注解@Component、@Repository、@Service、@Controller区别

http://blog.csdn.net/xiao190128/article/details/54890759

6 Spring-mvc.xml中关于<mvc:annotation-driven/>的配置如下

http://blog.csdn.net/sjjsh2/article/details/53100728  

7  利用aspectj进行AOP编程

http://www.mamicode.com/info-detail-660880.html

8 Mybatis中的四种传参方式(顺序,@Param,Map,JavaBean)

https://mp.weixin.qq.com/s/8p5UTWHObodgIrgXjcNhIg

  关于工程环境搭建问题

1 解决Maven项目,无法显示src/main/java资源文件夹

http://blog.csdn.net/zhbwww/article/details/29554829

2 Maven项目Update Project之后jre被改成JSE1.5的问题

http://blog.csdn.net/changqing5818/article/details/50346689

4 搭建ssm框架 (pom.xml文件)

https://blog.csdn.net/gebitan505/article/details/44455235(推荐)

https://www.cnblogs.com/aflyun/p/6421441.html

5 MyEclipse properties 文件中文变Unicode码

https://jingyan.baidu.com/article/eae078278713c01fec548596.html

http://blog.163.com/xk_maomao/blog/static/1760163452013229112520731/

6日志 log4j配置

https://www.cnblogs.com/ITtangtang/p/3926665.html

http://blog.csdn.net/dr_guo/article/details/50718063

7 web.xml 报错The content of element type "web-app" must match******

http://blog.csdn.net/subuser/article/details/21519933

7 web.xml 报错Attribute "xmlns:xsi" must be declared for element type"web-app".

https://blog.csdn.net/mlc1218559742/article/details/52931245(删webapp标签前的内容)

8 spring-mvc.xml中配置文件的<p>作用

http://blog.csdn.net/spirit23k/article/details/8214765

9 spring_mvc.xml中的cvc-complex-type.2.4.a: Invalid content was found starting withelement

http://blog.csdn.net/niu_hao/article/details/25250213

10 context:component-scan扫描使用上的容易忽略的use-default-filters (注意看后面的评论)

http://jinnianshilongnian.iteye.com/blog/1762632

11  spring-mvc.xml文件上Open quote is expectedfor attribute "id" associated with an element type "bean".   解决原因: id=viewReslover  缺少 “”改成 id=“viewReslover”

12spring_mvc.xml中的cvc-complex-type.2.4.a:Invalid content was found starting with element

'context-beans'.  错因:<context-beans base-package="com.lhw.control"/> , 标签名出错

13 MyEclipse的web项目中的js文件报Multiple markers at this line - Missing semicolon时的解决方法 :选中js文件,右键Myeclipse--ManaValidation--ExcludeResource--(选中全部或者报错的那个js)--点击OK 。 属于Myeclipse校验报错不影响,或者clean - refresh

14 java.lang.NoClassDefFoundError:junit.framework.TestCase  (junit.jar复制到项目WEB-INF)

https://blog.csdn.net/wmjone/article/details/9252497

15 nested exception isorg.apache.commons.dbcp.SQLNestedException: Cannot createPoolableConnectionFactory 

  待解决:    jdbc.property后面的url行后面多了个空格

关于数据库疑难:

1无法启动MySQL服务,报错1067进程意外终止的问题

https://www.2cto.com/database/201210/163125.html

关于myeclipse:

1 修改java文件后不需要重启tomcat,如何设置tomcat?

2 myeclipse在使用search查找某个字符时怎样设置只在指定的项目查找?

https://zhidao.baidu.com/question/616944373328658892.html

3 MyEclipse安装插件的三种方法和使用心得

 https://www.cnblogs.com/robbinluobo/p/6006495.html

4 myeclipse常用快捷键:

Alt +shift+s 构建构造方法

https://blog.csdn.net/chenleixing/article/details/44600587

关于项目启动疑难:

1        java.sql.SQLException: Table'ssms.system' doesn't exist Query: SELECT * FROM system []

https://zhidao.baidu.com/question/146817103.html(数据库名字:3306/ssms)

2        安装tomcat 查看jdk的安装位置 java – verbose

http://blog.csdn.net/longtengfei2008/article/details/39271113  (jdk的安装位置)

3   java.net.BindException:Address already in use: bind (端口占用)

http://blog.csdn.net/u012283609/article/details/66971559

(tomcat安装文件中启动” Tomcat8.exe,又在myeclipse中启动tomcat”,端口仅一个)

4   java.sql.SQLException:Unknown column 'account' in 'where clause' Query: SELECT * FROM user WHEREaccount=? AND password=? AND type=? Parameters: [admin, 111111, 1]

         答:连接的是mysql库,就导致ssms创建的user表和mysql库自带的user表一致,这个sql语句查询的是mysql自带的user表(装的用户登录名和密码)  user - > user_ssms5  http所有状态代表的意义?          http://www.jb51.net/article/88891.htm

6  Usingplatform encoding (GBK actually) to copy filtered resources, i.e. build isplatform dependent!

    答:https://blog.csdn.net/zxygww/article/details/46471423

7 tomcat运行报错Failed to start component[StandardEngine[Catalina].StandardHost[localhost].解决方案:https://blog.csdn.net/suyu_yuan/article/details/52431541 

猜你喜欢

转载自blog.csdn.net/zxl2016/article/details/90637602
今日推荐