Since WeChat is only popular in China, and all of their development articles are only written in Chinsese, I'll not offer the English version of this blog.
Since WeChat is only popular in China, and all of their development articles are only written in Chinsese, I'll not offer the English version of this blog.
Since WeChat is only popular in China, and all of their development articles are only written in Chinsese, I'll not offer the English version of this blog.
It is very straightforward, so there is no extra explanations needed, I'll just list all the necessary steps in this article, in stead of explaining
From today on, I'm going to develop a Java web site to replace my current personal web site. It'll probably involve the following techniques: Java Spring MVC MySQL Bootstrap
It is very straightforward, so there is no extra explanations needed, I'll just list all the steps in this article, in stead of explaining too much. Just like before, let's take it easy and enjoy a few beautiful photos first.
When trying to publish the web application onto the server, I found a bug: multiple access of the page can cause the Tomcat server to block and not responding. After some investigation, I finally found the reason: it opens a session when performing queries to the database each time, but it never close the session.
Time to implement and finish the management function now. It is not very complex, so I'll just post codes here without explaining too much.
According to its official document, HibernateTemplate is a helper class that simplifies Hibernate data access code. Let's find out how it simplifies the code and how to let it works.
When trying to commit Chinese data into the database in my application, I encountered a few errors. It turns out that I need to do a few modifications for my application, so that it can support Chinese characters.
I've finished the display portion of the code in my "Today in History" application. Now it is time to start the management portion of the code. For sure, I don't want any users, including anonymous users, to be able to manage my application. So, before implementing the management portion of the code, let's find out how to use Spring Security to protect my application from being accessed by anonymous users.