Welcome to OStack Knowledge Sharing Community for programmer and developer-Open, Learning and Share
Welcome To Ask or Share your Answers For Others

Categories

0 votes
172 views
in Technique[技术] by (71.8m points)

可以先跳过struts2、hibernate即ssh,直接学spring、spring-mvc、mybatis(ssm)吗

学完javaweb基础学习阶段(javase、servlet、jsp等等),现在学框架,可以先跳过struts2、hibernate即ssh,直接学spring、spring-mvc、mybatis(ssm)吗???


与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
Welcome To Ask or Share your Answers For Others

1 Answer

0 votes
by (71.8m points)

理论上没什么问题的,因为struts和spring没什么关系,你可以先学习spring的ioc aop,完了之后可以学习spring-mvc,这个时候就算你不学mybatis直接用Jdbc去做dao层,也不会影响一个java web项目的开发,当然你也可以学习了mybatis,然后重构你的dao层,现在用hibernate和struts的也慢慢变少了,主要是hibernate相对Mybatis来说,重量级不少,学习成本也高些,不过好处不用写sql,Struts最近经常爆漏洞,其实也没springmvc好用……个人觉得


与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
Welcome to OStack Knowledge Sharing Community for programmer and developer-Open, Learning and Share
Click Here to Ask a Question

...