Õª Òª
Õë¶ÔÓʼþÑé֤ϵͳ¹ý³ÌÖдæÔÚµÄÎÊÌâ ,²ÉÓÃPHPÓïÑÔÉè¼Æ¿ª·¢ÁË»ùÓÚThinkPHP¼Ü¹¹µÄÓʼþÑé֤ϵͳ¡£±¾ÏµÍ³¾ßÓдúÂë¼ò½à¡¢Âß¼½á¹¹ÇåÎú¡¢°²È«ÐԸߡ¢¿ÉÀ©Õ¹ÐÔÇ¿µÈÓŵ㡣ʹÓøÃϵͳ¼«´óµØÌá¸ßÁËÓʼþµÄÑéÖ¤¹ÜÀí¹¤×÷µÄЧÂÊ¡£ÓÉÓÚÍøÂçÖÐÓʼþÑé֤ϵͳ·±¶à¡¢ÒµÎñÐèÇó¶à±ä£¬»ùÓÚ¸÷Óʼþ·þÎñÆ÷µÄÓʼþÑé֤ϵͳµÄά»¤ºÍÒµÎñ±ä¸ü±äµÃÄÑÒÔ½øÐС£ÎªÁ˼«´óµØ·½±ãÉÏÍøÓû§£¬ÏµÍ³Ê¹ÓÃÁËB/S¼¼ÊõÀ´½øÐпª·¢,±ÜÃâÁËÔÓеÄC/S½á¹¹¿ª·¢Ëù´øÀ´µÄ±×¶Ë¡£²¢ÇÒ½«E-mailϵͳºÍWebÓ¦ÓýáºÏÆðÀ´£¬Óû§½öͨ¹ýä¯ÀÀÆ÷·ÃÎÊÓʼþϵͳ¼´¿É¡£±¾ÓʼþϵͳµÄ»ù±¾¹¦ÄÜ°üÀ¨£ºÓû§µÇ¼¡¢Í¨Ñ¶Â¼¹ÜÀí¡¢ÓʼþÊÕÈ¡¡¢Óʼþ·¢ËÍ¡¢²é¿´Óʼþ¡¢ÓʼþµÄ¹ÜÀí¹¦ÄÜ¡£
±¾ÎÄ´ÓÈí¼þÌåϵ½á¹¹Éè¼ÆģʽµÄ½Ç¶ÈÈëÊÖ£¬Ê×ÏÈÉè¼ÆºÍʵÏÖÒ»¸öÖ§³ÖÃܱ£ÓÊÏä·¢ËÍÓʼþ¡¢¹ÜÀíµÈ»ù±¾¹¦ÄܵÄÓʼþÑé֤ϵͳ£¬²¢ÔÚ´Ë»ù´¡ÉÏÌí¼Ó¸÷ÏîÀ©Õ¹¹¦ÄÜ¡£ÔÚ½éÉÜStruts2ºÍMVCÕûÌå¼Ü¹¹Ïà¹ØÀíÂ۵Ļù´¡ÉÏ£¬Ñо¿ÈçºÎʹÓÃÕâЩJAVA¿ò¼ÜºÍ¼¼Êõ£¬Ê¹ÓÃMyEclipse¿ª·¢¹¤¾ß¹¹½¨Áé»î¡¢ÊµÓõÄÓʼþÊÕ·¢Æ½Ì¨¡£¸Ã¼Ü¹¹µÄÖ÷ÒªÓŵãÊÇ£ºÒ×ÓÚά»¤ºÍÀ©Õ¹£¬·½±ãÓû§µÄÕÆÎÕºÍʹÓá£
´ËÓÊÏäϵͳ¹¦ÄÜÖ÷Òª·ÖΪ¹ÜÀíÔ±¹ÜÀíºÍÓû§¹ÜÀíÁ½´ó²¿·Ö£¬¹ÜÀíÔ±¹ÜÀíÖ÷Òª°üÀ¨¹ÜÀíÓû§ÐÅÏ¢¡¢É¾³ýÓû§µÈ£»Óû§¹ÜÀíÖ÷Òª°üÀ¨Óû§¸öÈËÐÅÏ¢µÄ¹ÜÀí¡¢¸öÈËÓÊÏäµÄ¹ÜÀíµÈ¡£¸Ãϵͳ¿ÉÒÔ¸ù¾Ý¶Ô¹¦ÄÜÐèÇó½øÐÐÀ©Õ¹ºÍÍêÉÆ¡£
¹Ø¼ü´Ê£ºÓʼþÑé֤ϵͳ£» ThinkPHP¿ò¼Ü£» MVC£» Struts2
Abstract
Currently, there are too many E-mail Management System, and too many business changing requirements, which results of E-mail Management System maintenance and operations become difficult to change. In order to greatly convenient of Internet users, the E-mail Management System used the B/S technology to carry on the development, which has avoided the malpractice of the traditional C/S structure. And combining the E-mail Management System and the Web application, then user can visit E-mail Management System just by opening the browser. The E-mail Management System basic function: the user registers, address list management, receiving the mail, sending the mail, reading the mail, mail management function.
In this paper, it firstly begins with the software architecture patterns, and then constructs an E-mail Management System which supports the basic functions, such as sending and receiving email,managing emailbox, next add the extension. On the basis of introducing Struts2 architecture and MVC structure, the paper discusses how to use these technologies and frameworks of JAVA to build a flexible, practical online teaching platform by ThinkPHP development tool. The main advantages of this structure are as follows, it solves the problems of maintainability and extendibility in traditional website systems; it enables users to more easily grasp and use this system.
This mail management system functions are divided into administrator and user management of two parts, the administrator management includes management of user information, delete users, etc.; The user management includes user personal information management, personal mailbox management. The system can be extended and improved based on functional requirements.
Key Words£ºE-mail Management System£» ThinkPHP£» MVC£» Struts2
Ŀ ¼
Ŀ ¼ 3
1. Ð÷ÂÛ 6
1.1 Ñ¡Ìâ±³¾° 6
1.2 ¿ÎÌâÒâÒå 6
1.3 ¿ÎÌâµÄÑо¿ÄÚÈÝ 6
1.4 ÂÛÎĵÄ×éÖ¯½á¹¹ 7
2. Ïà¹Ø¹¤¾ßÓë¼¼Êõ½éÉÜ 8
2.1 ϵͳ¿ª·¢µÄ¹¤¾ß 8
2.1.1 ThinkPHP¿ò¼Ü 8
2.1.2 SQL sever 2005 8
2.1.3 B/S¼Ü¹¹±à³ÌÌåϵ 8
2.2 ϵͳ¿ª·¢µÄ¼¼Êõ 9
2.2.1 MVCÀíÂÛ»ù´¡ 9
2.2.2 Struts2¿ò¼Ü¼¼Êõ 11
3. ϵͳÐèÇó·ÖÎö 13
3.1 Óû§ÐèÇó 13
3.1.1 ϵͳ¹¦ÄÜÐèÇó 13
3.1.2 Óû§¶ËÌØÐÔ 14
3.1.3 ÔËÐл·¾³ÐèÇó 14
3.1.4 ÐÔÄÜÐèÇó 14
3.1.5 Èí¼þÊôÐÔÐèÇó 15
3.2 Êý¾ÝÃèÊö 15
3.2.1 Êý¾Ý×Öµä 15
3.3 ϵͳµÄ×ÜÌåÉè¼Æ 17
3.3.1 ϵͳÉè¼Æ˼Ïë 17
3.3.2 ϵͳģ¿é˵Ã÷ 17
4. Êý¾Ý¿âÉè¼Æ 18
4.1 ¸ÅÄî½á¹¹Éè¼Æ 18
4.2 Âß¼½á¹¹Éè¼Æ 18
5. ϵͳÏêϸÉè¼Æ 20
5.1 ϵͳģ¿é×ÜÉè¼Æ˼Ïë 20
5.2 µÇ¼¹ÜÀíÄ£¿é 20
5.2.1 µÇ¼ģ¿é 20
5.2.2 ϵͳÖ÷½çÃæÉè¼Æ 21
5.2.3 »áԱģ¿é 23
6. ϵͳ²âÊÔ 25
6.1 ϵͳ²âÊÔÄ¿µÄ 25
6.2 ϵͳ²âÊÔ·½·¨ 26
6.3 ²âÊÔÓÃÀý¼°·ÖÎö 26
6.3.1 µÇ¼ģ¿é²âÊÔ 26
6.4 ±¾ÕÂС½á 28
7. ×ܽáÓëÕ¹Íû 29
7.1 ±¾ÎÄ×ܽá 29
ÖÂл 30
²Î¿¼ÎÄÏ× 31
Òý ÑÔ
ÖйúÊÇÊÀ½çÉÏEmailÕ˺Å×î¶àµÄ¹ú¼Ò£¬Ò²ÊÇ·¢Õ¹×î¿ì¡¢Êг¡»·¾³×ÔӵĹú¼Ò¡£µç×ÓÓʼþµÄ·¢Õ¹ÈçͬһÃæ¾µ×Ó£¬ÕÛÉä³öÖйúµÄÍøÂçÔËÓªÉ̼°ÍøÃñÃÇÔÚ»¥ÁªÍø·¢Õ¹¹ý³ÌÖеÄÖÖÖÖÐÄ̬¡£ÎÞÂÛÈçºÎ£¬µç×ÓÓʼþÔÚÈËÃǵÄÉú»î¡¢¹¤×÷¡¢Ñ§Ï°¹ý³ÌÖУ¬Ô½À´Ô½ÆÕ¼°¡£Í¬Ê±£¬»¹ÓÐÒ»ÖÖÇ÷ÊÆ£¬½«¶àÖÖͨÐÅÊÖ¶ÎÏà½áºÏ£¬³ÉΪһ¸öÁ¢ÌåµÄ¡¢È«·½Î»µÄͨÐÅÍøÂç¡£ÕâÖм䣬µç×ÓÓʼþÒ²ÔÚ°çÑÝ×ÅÏ൱ÖØÒªµÄ½ÇÉ«¡£ÊµÔÚÄÑÒÔÏëÏó£¬Èç¹ûûÓÐÁ˵ç×ÓÓʼþ£¬ÍøÃñµÄÉú»îÊÇÈçºÎµÄ¡£µ«´ó¶àÍøÕ¾ÓÊÏ书ÄܹýÓÚÇ¿´ó£¬²Ù×÷·±Ëö£¬²»¼òµ¥ÊµÓã¬ÉõÖÁÓеÄÊÇÊÕ·ÑÓÊÏ䣬¶ÔÓÚСÐÍÆóÒµ»ò¼¯ÌåÓÃÓÚÄÚÍøͨÐųɱ¾¹ý¸ß¡£ËùÒÔ±¾ÏµÍ³Õë¶ÔÓÚС·¶Î§ÈËȺÄÚ²¿Í¨ÐÅÉè¼Æ£¬ÊµÏÖÓÊÏä»ù±¾¹¦ÄÜ£¬²Ù×÷¼òµ¥Ò×Óá£
±¾ÏµÍ³²ÉÓÃThinkPHP¿ò¼Ü¿ª·¢£¬ºǫ́Êý¾Ý¿â²ÉÓÃSQL2005½øÐпª·¢£¬ÏµÍ³×ÜÌå·ÖΪÈý´óÄ£¿é£ºÓû§×¢²á¹ÜÀíÄ£¿é¡¢ÓÊÏä¹ÜÀíÄ£¿é£¬ÊÕ·¢ÓʼþºÍ¶ÔÓʼþÐÅÏ¢½øÐйÜÀí¡£Í¨Ñ¶Â¼¹ÜÀíÄ£¿é£¬¶ÔÁªÏµÈËÐÅÏ¢½øÐйÜÀí¡£