Preliminary Exploration of Tianyi Forum (edited)

xiaoxiao2021-03-05  21

Sorry, the last time I came directly from Word, so the typography was chaos.

Recently I learned SSH, I heard that Tian B is realized by this architecture, and its author Laoer opens the source code. I quickly rushed to the home page (http://www.laoer.com/) to download research.

Jian Database, found 76 tables, surprised! It is confused when you look at it, confused, don't know what special uses. Temporarily put down.

Since it is BBS, there is definitely a registration function, first study the registration process.

The configuration in Struts is as follows:

OK, first look at Register ..... ... ^ _ ^, it turned out to call UiService registration. Tracking Uiservice Discovering in TopBaseAction.java: There is a configuration in Spring's profile (ApplicationContext.xml): So open userinfoseviceimp.java, very open to find the reguser method: Let's find it again to see UserInfoservice configuration It turns out that Spring uses the IOC mechanism into the UserInfodao definition in the Spring profile. Open Userinfohibernatedao, soon you find the SaveUserInfo method, summarize:

转载请注明原文地址:https://www.9cbs.com/read-38267.html

New Post(0)