Today, I finally completed a demo of a project.
Program . This is an urgent task. I did it for nearly five days and nights. These five days have not suffered much. But I am also happy that this is all done by myself, from database design to page design (because it is demo, so it is very simple, haha ), and then the design of the entire framework (or what is it, haha. I have never done a Java B/S program before, and I have made many detours by myself. Haha, now I have done it. To sum up the implementation process of this small demo project, I really feel the importance of using tools. Some people like to do everything on their own, but I don't like it. There are ready-made and useful tools, why not use it (the premise is that you will use it ). Here I have used the following items (including open-source tools and some downloaded jar files), powerdesigner, hibernate, Hibernate tool (jboos IDE), JDOM, log4j, there is also jstl (JSP standard tag library ). Every one is very useful.
I. Hibernate and hibernate tools
I have been learning hibernate since N long ago, but I have no chance to actually use it. This time, someone else must use this name. This is exactly what I want. But when it was actually used up, there were still a lot of problems. I spent most of my time on it.
In the past few days, the soureforge website has been unable to download. c. there comes hibernate3.1.2 and the latest JBoss ide plug-in, used up later, but always problems, and finally, nearly took me a day, finally found that JBossIDE-1.5-ALL integrated is HibernateTools-3.1.0.beta3, the latest version is beta4. Later I got beta4 from Jacky at AM to set up the hibernate environment.
I have never used it before and don't know it. I only need to know That Hibernate is so convenient. Dao, I have almost never written many SQL statements, and almost all of them operate classes. Hibernate tools provides many usefulCodeI am not very familiar with it yet. I only use the XML image files and beans automatically generated by it. It seems necessary to study in depth. Of course, I am still not having to solve the problem of hibernate database optimization and multi-Table link. I still need to learn.
Ii. JDOM
A long time ago, I had a chance to know that there was something in Java called JDOM that could easily operate XML. Haha, Now I use it. It feels really good. XML is almost as easy to use as a tree. Let's look at the code in my company that is used to operate XML. Haha, I am much better than them.
Iii. jstl1.1
I still don't know how to use this stuff until now, and now I only use something in the core tag library. But these things make my JSP page Code look very comfortable, just like HTML. It is also very convenient to use with bean.
4. log4j
I used to think that I was working on a project that day and must use log4j. This time I did it and found that I still don't quite use it. On the one hand, this is also a B/S program, it is not good to do log (may be OK, but I still won't ). However, from some Dao tests, this is very helpful for me to find bugs.
V. Power Designer
I first learned about the existence of this item from Jacky (I learned a lot with Jacky ). Because of this, I also used hibernate tools. I modified the database table structure several times later, And My SQL scripts and beans were automatically generated. I hardly modified much code, haha.
Of course, I am still a beginner, and there are still many shortcomings in this project.
The biggest thing is that the framework like spring is useless. I am not familiar with these aspects. I almost used a servlet to process all connection requests.
The other is TDD. I used to advocate how TDD works when I was in Information Engineering, but I didn't do this in my project. This is not a technical reason (I am still familiar with JUnit, even if it is a test servlet, I can use Jetty to test it, but there are still many reasons ), because this is really too urgent, I will definitely use it later.
I have really understood a lot of things over the past few days. Practice is very helpful for understanding. Now, the urgent thing I want to do is to learn spring. I need to understand it in any way, but it seems a little difficult. Alas, there is not much time left for me.
Postscript:Now I have switched to Java. For my learning framework, Java is much better than. net.