Theoretically there is no problem, because struts has nothing to do with spring. You can first learn spring's ioc aop, and then you can learn spring-mvc. At this time, even if you don't learn mybatis and directly use Jdbc to do the dao layer, it will not affect For the development of a java web project, of course you can also learn mybatis and then reconstruct your dao layer. Nowadays, fewer and fewer people use hibernate and struts. The main reason is that hibernate is much heavier than Mybatis. Learning The cost is also higher, but the advantage is that you don’t need to write sql. Struts has been exposed to vulnerabilities recently. In fact, it is not as easy to use as springmvc... I personally think
No problem at all, but if you want to understand the MVC framework structure, you can still take a look at struts2. After all, it is a very good MVC framework, and springmvc is also more mainstream now; the purpose of learning the framework is to work more efficiently. But frameworks encapsulate the most basic things, so no matter how much you learn about frameworks, never abandon the basics.
This is how I learned. I followed the video of a certain training institution, finished learning the servlet, database, and jdbc in the front, and then started directly with Spring, which has nothing to do with the previous ssh
Theoretically there is no problem, because struts has nothing to do with spring. You can first learn spring's ioc aop, and then you can learn spring-mvc. At this time, even if you don't learn mybatis and directly use Jdbc to do the dao layer, it will not affect For the development of a java web project, of course you can also learn mybatis and then reconstruct your dao layer. Nowadays, fewer and fewer people use hibernate and struts. The main reason is that hibernate is much heavier than Mybatis. Learning The cost is also higher, but the advantage is that you don’t need to write sql. Struts has been exposed to vulnerabilities recently. In fact, it is not as easy to use as springmvc... I personally think
No problem at all, but if you want to understand the MVC framework structure, you can still take a look at struts2. After all, it is a very good MVC framework, and springmvc is also more mainstream now; the purpose of learning the framework is to work more efficiently. But frameworks encapsulate the most basic things, so no matter how much you learn about frameworks, never abandon the basics.
You can follow the teacher
This is how I learned. I followed the video of a certain training institution, finished learning the servlet, database, and jdbc in the front, and then started directly with Spring, which has nothing to do with the previous ssh
spring mvc has become mainstream
Don’t learn struts2 and hibernate. First of all, these two frameworks are rubbish. Secondly, they are a waste of time.