Design and implementation of news release and management system (thesis + PPT + source code)

Undergraduate Graduation Project (Thesis) Topic: Design and Implementation of News Release and Management System Topic:

Undergraduate Graduation Design (Thesis) Assignment Statement

Topic: Design and Implementation of News Release and Management System

Topic of the topic (leave blank if there is no topic):

Original basis (including the working basis of the design (thesis), research conditions, application environment, work purpose, etc.):

  • Working basis
    The design and implementation of a web-based news release and management system is a combination of dynamic web pages and databases, and processes news through events. We need to update and publish the latest information in a timely manner, and dynamic interactive web pages can realize these functions. The news release and management system is a system that can realize news release and management on the Internet, so that people can better obtain updated news information.
  • Research conditions
    With the development of global informatization, the pace of life is getting faster and faster, which requires people to demand the timeliness and real-timeness of information. So the web-based news release system gradually becomes the focus of people's attention. First of all, the real-time performance of web-based news release system is much higher than that of traditional media. Journalists can complete the press release on the front line and release it immediately after passing the review, and it can be read by readers immediately after release. Secondly, the convenience of the web-based news release system is also higher than other media forms. Once the system is launched, readers in any corner of the world, as long as they can connect to the Internet, they can get the news they want in the first place.
  • Application environment
    The database used by the system uses MySQL, the page is written in jsp, and the server uses Tomcat. Run on Windows2007 system
  • Purpose of work
    The news release and management system can enable people to read the latest news information in a timely manner, meet people's requirements for real-time news content, and people can know what is happening in every corner anytime and anywhere. This is the purpose of the news release system.


Main content and requirements: (including design (research) content, main indicators and technical parameters, and specific requirements for students according to the nature of the project):

  • Research content
    Readers of this system can register as a registered user, and then they can browse and comment on news. After the user logs in, he can modify his personal password, which is mainly for the front desk login. The background login is the administrator login, and then log in to the system to perform corresponding operations. News editing is mainly divided into uploading the first draft of news and news revision; news review, he can provide revision suggestions for news review, news release, news archive, and change password; the administrator first logs in to the system, and then checks the relevant information of the user account, news Information, user comment information, etc. are managed. In order to enable people to read the latest news information in a timely manner, the daily latest information column allows readers to see the latest daily information faster. Previous news are stored in the database, you can search directly if you need to check. Managers can enter the background interface, which is the core of news release and management. Here, the news information fed back by reporters from all over the world needs to be compiled and published in the background interface in time to meet the real-time requirements of news content.
  • Specifically,
    it is required that managers and readers have different permissions. Managers have all permissions, while readers only have the permission to read news and cannot add, modify, and delete news. They only have the permission to query. Managers have the authority to release and modify team news.
    Schedule:
    1. Complete the thesis proposal before February 11, 2017
    2. Demand analysis in the first and second weeks
    3. Outline design in the third and fourth weeks
    4. Detailed design in the fifth and sixth weeks
    5. System in the seventh, eighth and ninth weeks Development and function realization
    6. Improvement and testing of system functions in the tenth week
    7. Collation and finalization of the graduation thesis in the eleventh and twelfth weeks
    Main references and bibliography:
    [1] Li Wei. The design and development of the news management system of Benxi Daily Realization [D]. Jilin University, 2016.
    [2] Qin Jiawei. Design and Implementation of Membership Management System Based on B/S Structure Fitness Center [D]. Jilin University, 2016. [3
    ] Kang Qilin. News Network Media Management Release System Design and Implementation [D]. Jilin University, 2016. [4] Liu Shenju, Tian Dan. Design of Campus News Publishing System
    Based on http://ASP.NET [J]. Heilongjiang Science and Technology Information, 2016, (15) :185.
    [5] Tian Chao. Design of Bilingual Teaching Platform for Computer Network Courses Based on MySQL [D]. Inner Mongolia University, 2016. [6
    ] Zhao Jiasheng. Design and Implementation of Information Publishing System Based on Android Platform [D]. Yunnan University, 2016.
    [7] Annals of History. Project Development Experiment of News Management System [D]. Jilin University, 2015. [
    8] Song Wei. Design and Implementation of Mobile Comprehensive Website Based on J2EE [D]. Jilin University, 2015.
    [9] Sun Xiaodong, Zhang Yuhan. Sociological Analysis of the Dilemma of Value Consensus in the Web2.0 Era [J]. Journal of Beijing Institute of Technology (Social Science Edition), 2015, (06): 154-160. [10] Tang Chen. Small
    News Design and implementation of publishing system [D]. Jilin University, 2015.
    [11] He Xizhen. Design and implementation of news recommendation system based on user feedback information [D]. Shandong Normal University, 2015.
    [12] Xu Zhaoxia. Web-based information Design and Implementation of Publishing and Information Exchange Platform [D]. Jilin University, 2015. [
    13] Shu Yanqiu. Research and Analysis of News Release Management System [D]. Yunnan University, 2015.
    [14] Zhou Bangding. Automatic Retrieval of Customer Negative News Method research and application [D]. University of Science and Technology of China, 2015.
    [15] Guo Rui. News release system based on B/S structure [D]. Jilin University, 2014.
    Instructor (signature) :
    year, month, day
    note : This table can be extended independently, and each major can be adjusted according to the needs.


Undergraduate Graduation Design (Thesis) Opening Report
Title: Design and Implementation of News Release and Management System
Topic (leave blank if there is no special topic) :
Source and research status of this topic:

  • The source of the topic
    The 21st century is the era of information and the era of the Internet. It has entered the era of rapid development of the information society, and the digital revolution has brought new changes to all fields. The development of information technology has made the whole world smaller and smaller, which also means that the competitive environment of enterprises is developing from regionalization to globalization. Economic globalization is a major trend. A network in a narrow sense should be connected, but the technical environment and the economic environment should be considered together to form a concept of a large network. The degree to which an enterprise grasps information, whether information is obtained in a timely manner, whether information can be fully utilized, and whether the response to information is sensitive and accurate have increasingly become important factors to measure an enterprise's market competitiveness. Therefore, it is of great significance to establish a dynamic news release system to meet the requirements of society and enterprise development. With the popularization of the Internet, no matter how far apart people are, they feel like they are close to each other. You can know the latest major events in the world without leaving home, and you can talk freely with friends on the other side of the ocean. With the further development of the Internet, the status of network media in people's hearts is further enhanced, and the news release system, as the core system of network media, is becoming more and more important: on the one hand, it provides a function of news management and release; On the other hand, the current news release requires interaction with ordinary users, and users can easily participate in some surveys and comments on related news, which is something that other media (television, radio, etc.) cannot do at the same time. , the Internet has developed to the present, it can be said that as long as you go to the Internet, you will come into contact with the news release system. The users of the news release system are quite amazing, and its importance is beyond doubt. raised higher demands
  • Research status
    The news release system is a site-wide management system based on news and content management. The news release system is based on the B/S model. This system can organize messy information and present it to everyone in a reasonable and orderly manner. Today's society is In an information society, news, as a part of information, has the characteristics of large amount of information, various categories, and various forms. The concept of news release system is put forward. The proposal of news release system makes TV no longer the only news media. It also acts as an important news medium. Simply put, the news release system acts as a network news medium, mainly realizing the classification, uploading, review, and release of news, simulating the process of news release of general news media , through accounts with different permissions to realize the functions mentioned above, of course, these functions can also be provided by a certain account. Traditional newspapers and magazines are far from meeting people's needs. People hope to learn more news and information online. Web pages are gradually integrated into people's lives. Fast and timely browsing of news and colorful online information have become people's At the same time, more and more companies have established their own WEB websites, through which companies can display products, release the latest news, communicate and communicate with users, establish contact with partners, and carry out e-commerce, etc. . In the world of the Internet, there is infinite vitality. There are only unexpected and impossible things here. The development of the Internet has unlimited prospects. Early integration with the Internet, synchronization with the information age, and convergence with high technology will surely inject fresh vitality into the development of all walks of life in society. In the field of network technology, the classification of news release systems: 1. News release systems dynamically displayed on the front desk. This type of system accounts for about 60% of the share. Its main feature is that the front desk uses programming language to dynamically read the contents of the database. Update, this type of system is simple in design, suitable for the needs of most small and medium-sized enterprises to build websites. It is not universal and generally needs to be tailored. It is not suitable for large-scale news sites. When there are too many users, the programming language will consume a lot of servers when dynamically reading the database. resources, causing the system to run slowly, or even crash. At the same time, because the front-end news is dynamically read from the database, the front-end users directly contact the database, which can easily cause some unsafe factors, such as: SQL Injection. 2. Static display of the front-end News Release System This type of system occupies more than 30% of the market share. Its main features are: all the front-end news generates HTML static files, and the front-end does not need to read the database.
    Project research objectives, content, methods and means:
  • Research objective:
    to develop a news release system based on Web and JavaEE technology. The guidelines for system development are safe, reliable, economical, and practical, with certain flexibility and adaptability, and certain scalability. The system adopts modular design, rich in functions, high availability and maintainability.
  • Research content:
    Readers of this system can register as registered users, and then they can browse and comment on news. After the user logs in, he can modify his personal password, which is mainly for the front desk login. The background login is the administrator login, and then log in to the system to perform corresponding operations. News editing is mainly divided into uploading the first draft of news and news revision; news review, he can provide revision suggestions for news review, news release, news archive, and change password; the administrator first logs in to the system, and then checks the relevant information of the user account, news Information, user comment information, etc. are managed.
    In order to enable people to read the latest news in a timely manner, the latest daily items allow readers to see the latest daily information faster. Previous news are stored in the database, you can search directly if you need to check.
    Managers can enter the background interface, which is the core of news release and management. Here, the news information fed back by reporters from all over the world needs to be compiled and published in the background interface in time to meet the real-time requirements of news content.
  • Research method:
    Before the system development, there is an overall framework idea for the system, and the structure and function of each functional unit are relatively clear, but it has not been realized yet. What functions the system completes, which parts it is divided into, and which modules each part has, must be understood and mastered. The development of information system is a relatively complicated work, and scientific and effective development methods must be selected. It is divided into five parts: system investigation stage, system analysis, system design, system implementation, system maintenance and evaluation. Implement the entire system according to the system design, including physical implementation, program design, debugging, etc. Implementation is the last step, which is related to the final success.
    Design (thesis) outline and schedule:
  • Design (Thesis) Outline:
    Chapter 1 Introduction
    Chapter 2 Related Technologies and Methods Chapter
    3 System Analysis
    Chapter 4 System Design
    Chapter 5 System Implementation
    Chapter 6 System Testing
    Chapter 7 Summary
  • Schedule:
    1. Complete the thesis proposal before February 11, 2017
    2. Demand analysis in the first and second weeks
    3. Summary design in the third and fourth weeks
    4. Detailed design in the fifth and sixth weeks
    5. System in the seventh, eighth and ninth weeks Development and function realization
    6. Improvement and testing of system functions in the tenth week
    7. Collation and finalization of the graduation thesis in the eleventh and twelfth weeks
    Main references and bibliography:
    [1] Li Wei. The design and development of the news management system of Benxi Daily Realization [D]. Jilin University, 2016.
    [2] Qin Jiawei. Design and Implementation of Membership Management System Based on B/S Structure Fitness Center [D]. Jilin University, 2016. [3
    ] Kang Qilin. News Network Media Management Release System Design and Implementation [D]. Jilin University, 2016. [4] Liu Shenju, Tian Dan. Design of Campus News Publishing System
    Based on http://ASP.NET [J]. Heilongjiang Science and Technology Information, 2016, (15) :185.
    [5] Tian Chao. Design of Bilingual Teaching Platform for Computer Network Courses Based on MySQL [D]. Inner Mongolia University, 2016. [6
    ] Zhao Jiasheng. Design and Implementation of Information Publishing System Based on Android Platform [D]. Yunnan University, 2016.
    [7] Annals of History. Project Development Experiment of News Management System [D]. Jilin University, 2015. [8
    ] Song Wei. Design and Implementation of J2EE-Based Mobile Comprehensive Website [D]. Jilin University, 2015. [
    9] Sun Xiaodong, Zhang Yuhan. Sociological Analysis of the Dilemma of Value Consensus in the Web2.0 Era[J]. Journal of Beijing Institute of Technology (Social Science Edition), 2015,(06):154-160.
    [10] Tang Chen. Design and Implementation of Small News Publishing System [D]. Jilin University, 2015. [
    11] He Xizhen. Design and Implementation of News Recommendation System Based on User Feedback Information [D]. Shandong Normal University, 2015.
    [ 12] Xu Zhaoxia. Design and Implementation of Web-based Information Publishing and Information Exchange Platform [D]. Jilin University, 2015. [13
    ] Cai Jian, Jing Nan. Java Web Application Development: J2EE and Tomcat [M]. Beijing: Tsinghua University University Press, 2004.
    [14] Shu Yanqiu. Research and Analysis of News Release Management System [D]. Yunnan University, 2015. [15
    ] Zhou Bangding. Research and Application of Automatic Retrieval Method for Customer Negative News [D]. China Science and Technology University, 2015.
    [16] Guo Rui. News release system based on B/S structure [D]. Jilin University, 2014.
    Supervisor review opinion:
    Supervisor ( signature) :
    year, month, day
    Note: This table can be extended
    independently With
    the householdization and popularization of computers, smart phones and other devices that can be connected to the Internet, various websites have been designed and developed, with various functions and different fields involved, such as life, business, technology and so on. The release of information is a major feature of the Internet. The main requirement of people surfing the Internet is to obtain the information they want or the information they are interested in, so the news release and management system was born.
    From the springing up of WEB websites in recent years, it is not difficult to see that people's understanding of external information largely depends on information publishing websites. Due to the popularity of smart phones, this demand is increasing day by day, and people are beginning to rely on these information publishing websites. Publishing websites, the reading of information is not limited to a few information publishing websites, but the more the better, as long as they can meet their needs for information understanding, the websites can be born. The emergence of these information publishing websites It has affected the living habits and information acquisition methods of our generation, and also added color to people's leisure life before tea and after dinner.
    The above is the reason why I choose "News Release and Management System" as the topic of my graduation project.
    The design and development technology of "News Release and Management System" described in this article uses B/S technology in the front-end design, just to give users the most perfect user experience. The background development of this application uses java development technology, and the database uses MySQL database for data storage operations.
    Keywords: WEB; news release; JSP; system


ABSTRACT
With the computer, intelligent mobile phone can connect to the network equipment family and popular, designed and developed a variety of websites, a variety of functions, and relates to the field of different life, business and technology, etc.. The release of information is a major feature of the network, the main needs of people is to get the information they want or interest in the information, so the news release and management system is born.
In recent years, the WEB website recently sprung up is not difficult to see people on the outside information largely depends on the information release site, due to the popularity of smart mobile phone will lead to the demand in the growing, people began to rely on the information release site, the information reading is not limited to a few information website but, the more the better, as long as they can meet the demand of information about a website can be born, these information hair sites affect the people of our generation living habits and methods of obtaining information, but also adds color to people after the meal before tea amateur life.
The above is I will choose "news release and management system" as the reason of my graduation design topic.
This paper describes the news release and management system, the design and development of technology, front-end design using B/S technology, just to give the user the most perfect user experience. The background of the development of the application is the development of Java technology, the database uses the MySQL database for data storage operations. Keywords :
WEB  ; press
releases ; JSP; 44 Chapter 3 System Design 55 3.1 Functional Requirements 55 3.2 Performance Requirements 66 3.3 Reliability and User Interface Requirements 77 3.4 System ER Model 88 3.5 System Process Analysis 99 Chapter 4 System Function Realization 1111 4.1 System Architecture 1111
 
 



 





 

4.2 System Design 1212
4.3 System Database Design 1313
Chapter 5  System Function Implementation 1515
5.1 Foreground News Release System Interface 1515
5.1.1 User Registration Interface 1616
5.1.2 User Login Interface 1717
5.1.3 User Browsing News Interface 1818
5.2 Background News Interface System 1919
5.21 Background Management Interface 2121
5.2.2 News Column Management Interface 2121
5.2.3 News Information Management Interface 2323
Chapter 6  System Test 2727
6.1 Test Overview 2727
6.2 Test Environment 2727
6.3 Test Content 2727
Chapter 7  Summary 3131
Acknowledgments 3333
Chapter 1 Introduction
With the householdization and popularization of computers, smart phones and other devices that can be connected to the network, various websites have been designed and developed, with various functions and different fields involved, such as life, business, technology and so on. The release of information is a major feature of the Internet. The main requirement of people surfing the Internet is to obtain the information they want or the information they are interested in, so the news release and management system was born.
From the springing up of information release websites in recent years, it is not difficult to see that people largely rely on information release websites to understand external information. Due to the popularity of smart phones, this demand is increasing day by day, and people are beginning to rely on these information The reading of information is not limited to a few information publishing websites, but the more the better, as long as they can meet their needs for information understanding, the websites can be born. The emergence of social media has affected the living habits and information acquisition methods of our generation, and also added color to people's leisure life before tea and after dinner.
Nowadays, computers have been widely used in various aspects of artificial intelligence, information acquisition, and information release, and computer network technology has also developed rapidly. We go online not just to watch TV and send and receive e-mails, people can complete entertainment activities in daily life through the Internet. As for news release, international and domestic news information can be released more quickly through the Internet. With the important improvement of Internet technology, better information dissemination is provided for the media and information business industry, and the information publishing industry adopts the most advanced technology to improve the quality of information production rapidly. News release system, its content is very important to people at all levels of society today, so the news release system should be able to provide users with real and practical information and convenient query methods, and fast release methods, so that the media can quickly Publish to readers etc. With the continuous improvement of science and technology, computer science is becoming more and more mature, and its powerful functions have been deeply recognized by people. It has entered various fields of human society and is playing an increasingly important role. As a part of computer application, using computer to manage news information has advantages that cannot be compared with manual management. Quick retrieval, convenient search, high reliability, large storage capacity, good confidentiality, long life, low cost, etc. These advantages can greatly improve the efficiency of personnel and labor management, and are also an important condition for the scientific and regular management of enterprises and the integration with the world.
The news recommendation system, on the basis of fully understanding the news business process, adopts a series of latest information processing technologies to scientifically manage news, realize the most extensive sharing of news information, and enable news to be released through computer networks. And users can browse the website through computers anytime and anywhere.
The news release system is also known as the news management and information editing management system. It can realize the centralized operation of a lot of news on the website, the main knowledge of the news manager, etc., classify the information by the content category, and then integrate, standardize, and standardize the entire online Then put it on the website for people to consult a kind of network information management program. It can use the Internet to develop a component message publishing system. The information in the page is added to the data through this simple insertion item, and finally the designed Examples of web pages are inserted so that they can be posted to the site for viewers to view. Using the Internet database, the management method of the website can be simplified to just inputting text, so that the site can call real-time information more quickly, and the workload of site management and maintenance can be effectively reduced through the news release system, which has a certain impact on the development rate of news. Very impressive improvement.
Today, with the rapid development of science and technology, the people's needs are also increasing due to the accelerated pace of life. People are eager to obtain more timely, simple and clear news. The traditional newspapers, periodicals and magazines can no longer satisfy people's desire to get first-hand information. Therefore, the news release management system with the Internet as the media unit began to gradually replace the original backward news, and became a new contemporary trend. In the fastest and most convenient way, the news collection, editing and publishing system enables people to obtain and share resources from all over the world and communicate without going out. The timeliness of the news website allows all comments and readings to be updated in real time. The news collection, editing and publishing system manages the changing information effectively by managing the news and comments published on the Internet, so that network users can obtain the multimedia display of news. The paper introduces the research background, project significance, and current research and application status of the news release management system, and clarifies the content and main work of the paper research; after the business analysis process, the system's existing problems, overall structure, and original business process etc. have done further research, and thus obtained the business process after transformation; module function analysis, use case analysis and use case description, and determined the system function, the system diagram and package diagram and the overall function of sub-functions, including news Publishing and other package diagrams; in the final data analysis link, the data that needs to be processed by each functional module of the entire system is analyzed and discussed. According to the relationship between these data, the entity class relationship diagram and database table structure are established; the article The last part is the summary of the research and analysis of the news release management system, puts forward the problems in the analysis, puts more efforts and careful research into the in-depth work in the future, and makes a new prospect.



Chapter 2 Introduction to related technologies
2.1 Introduction to JAVA
Java is an object-oriented programming language, which is different from the process-oriented programming language of C++, but Java inherits many advantages of C++, and at the same time lacks the multiple inheritance and pointers in C++. Therefore, the Java language has the characteristics of object-oriented and single inheritance. The object-oriented programming language in Java is the representative of programming language, which embodies the object-oriented theory. Java's object-oriented and cross-platform multi-threaded program can be used to write and realize the program to make the program more scalable. 2.2 Introduction to JSP technology JSP
full
name It is called Java Server Pages, which is called java server page in Chinese. It is basically a simplified Servlet design. It is a dynamic web technology standard initiated by Sun Microsystems and established by many companies. JSP technology is somewhat similar to ASP technology. It inserts Java program segments (Scriptlet) and JSP tags (tag) into traditional web page HTML (a subset of standard general markup language) files (*.htm, *.html) to form JSP file, the suffix name is (*.jsp). Web applications developed with JSP are cross-platform and can run on Linux as well as other operating systems.
It implements java extensions in Html syntax (in the form of <%, %>). JSP, like Servlet, is executed on the server side. Usually what is returned to the client is an HTML text, so the client can browse as long as it has a browser.
JSP technology uses the Java programming language to write XML-like tags and scriptlets to encapsulate the processing logic for generating dynamic web pages. Web pages can also access the application logic of resources that exist on the server side through tags and scriptlets. JSP separates webpage logic from the display of webpage design, supports reusable component-based design, and makes the development of web-based application programs quick and easy. JSP (JavaServerPages) is a dynamic page technology, its main purpose is to separate the presentation logic from the Servlet. Java Servlet is the technical basis of JSP, and the development of large-scale Web applications requires the cooperation of Java Servlet and JSP to complete. JSP has all the characteristics of Java technology, which is easy to use, completely object-oriented, platform-independent, safe and reliable, and mainly oriented to the Internet.
2.3 Introduction to MySQL database
Management Language - Structured Query Language (SQL) for database management. Since MySQL is open source, anyone can download it under the General Public License and modify it according to individual needs. MySQL gets a lot of attention for its speed, reliability, and adaptability. Most people agree that MySQL is the best choice for managing content when transactional processing is not required. The origin of the name MySQL is not very clear. One of the more influential claims is that the basic guide and a large number of libraries and tools have been prefixed with "my" for more than 10 years, and anyway, the daughter of Monty Widenius, one of the founders of MySQL AB, is also called My. Which of the two gave the name MySQL is still a mystery, including the developers. The name of MySQL's dolphin logo, "sakila", was chosen by the founders of MySQL AB from an extensive list of names suggested by users in the "Name the Dolphin" contest. The winning name was provided by Ambrose Twebaze, an open source software developer from Swaziland, Africa. According to Ambrose, Sakila comes from a Swazi dialect called SiSwati, which is also the name of a small town in Arusha, Tanzania, near Ambrose's native Uganda. Although MySQL may not be very powerful, because of its open source and wide spread, many people have learned about this database. Its history is also legendary.



Chapter Three System Design
3.1 Functional Requirements
The purpose of this system is to realize the basic functions of the news release system. The news release system provides different types of news (such as social news, entertainment news and technological frontier news, etc.) to meet the needs of different users; the system divides users into: ordinary users, system administrators and news administrators. Ordinary users can browse, read and search for news in this system. The title of each news is made into a link, and users can jump to the page for news reading by clicking them; on the news reading page, the detailed information of each news will be taken out, including content, title, etc.; users can search according to their own needs News, such as news can be searched by news title or news content, so that qualified news can be found quickly and search results are output; users can comment on news (allow anonymous comments). System administrators can manage news categories, add news, modify news, review news and delete news, and at the same time, system administrators can complete user management, including system user management, adding users and changing accounts. News administrators have the authority to add news and change accounts. According to different users, different permissions are given, which strengthens the management of the system and at the same time strengthens the security of the system.
The use case diagram of ordinary users is shown in Figure 3-1. Ordinary users can browse news, user login, and news comment functions;


Figure 3-1 Common user use case diagram
Administrator user use case Figure 3-2 Administrator has user login, comment management, news column management, and news management rights.


Figure 3-2 Administrator user use case Figure
3.2 Performance requirements
Develop and design according to the requirements of the news system, mainly to achieve the following goals: friendly interface design, beautiful, accurate, safe and reliable data. Powerful query function, convenient for users to browse all the information of the website. Design member login function to ensure the security of news messages. Realize the addition, modification and deletion of information, competition items and other information, which is convenient for updating website content. The system maximizes ease of maintenance and operability. Ease of operation and practicability This system is a social news release system, and most of the users targeted at it are social personnel. Therefore, the simplicity and practicability of operation is particularly important. This point is well reflected in the development of this system. The interface of the system is beautiful, elegant and full of humanity; it is also easy for users to operate. For a social news publishing system, there are a lot of news information, and the number of users is large, so there are relatively high requirements for system security: for the database, different user permissions must be set, and data modification must be operated by legitimate users .
3.3 Reliability and user interface requirements
In order to better strengthen the management of news network systems, news websites, and personal homepages, earnestly implement the network and information security system, prevent and deal with major emergencies and sensitive events in social network management, and ensure that the network provides Stable and secure information services.
Legal Feasibility Study The design and development of this system will not constitute infringement or other liability disputes in society and individuals. Because the system is researched as a graduation project, it has nothing to do with business, and it is self-designed and developed, so it will not cause information leakage. Some data in the system are simulated by ourselves and will not cause harm to society or individuals. necessary infringement and therefore legally possible.
The website interface is the page that the user directly visits, so that the user can see what the theme of the website is when they visit it, and it can reflect the central content of the website at once. And the modules on the home page should be closely linked to better understand it for users. On this page, we need to achieve all the functions of viewing messages, or to have a connection that can realize the function of querying information.



3.4 System ER Model
In order to ensure that the correct data in the system can objectively and truly reflect the world, some of the integrity rules are implemented through some controlled standard operating procedures. The database should have security, which is an important aspect of the database system. It refers to the protection of the database to prevent illegal use, including destruction and unauthorized access.
However, since the data involved in the system designed and developed this time does not have confidential data, there is no need to take particularly complicated security measures, only to prevent the data from being changed arbitrarily. According to the system requirements, the following data items and data structures can be listed, and the entity model is represented by ER diagram 2-4 below

Figure 2-4 Solid Model



3.5 System flow analysis
In order to make users understand the system design further, this section will analyze the flow process of the system. User identity judgment is divided into two stages:

    1. .Judge whether the user is a registered user of the system.
    2. .Determine whether the registered user is an administrator or an ordinary user.
      The first stage is to match the user name and password to be logged in with the data in the user information table in the database connected to the system. If the corresponding user can be found in the database, the login is successful. The second stage is to find out the user object according to the user name of the effective user, and determine its working interface according to the style attribute value in the user object.
      The system is divided into two parts, the foreground system and the background system. The background system has the above two stages of identity judgment, and the foreground only has the above first stage of identity judgment. Figure 3-6 shows the login process of the background system
      . The super administrator can manage the information of all ordinary users and ordinary administrators, as well as manage all news information, while the ordinary administrator has one less authority to manage the information of ordinary users.
      Figure 3-6 The login process of the background system


Chapter 4 System Function Realization
4.1 System Architecture
The system designed and developed this time is a B/S mode system. The background data processing layer, the intermediate business logic layer, and the user interface layer form a three-layer structure system. The background uses the database, the middle layer uses the data analysis and processing program, and the front end uses the WEB connection to develop three hierarchical structures. Use and MySQL database and JSP technology platform development.
The front-end software is developed using Web technology, and the client is run by downloading from the server, which can improve the security performance of the entire system to the greatest extent; the client interface uses a browser, which is very simple to operate, and a lot of training costs and time are required. can be saved. In the actual implementation, we can make full use of JSP technology. The development of WEB greatly improves the scalability, functionality and reliability of the application. The final result is not a simple HTML page, but can be built on it. An application complete platform. The system is mainly aimed at the management of news release work. According to the functions and goals determined by the analysis system, the structure design of the system is carried out by adopting the method of step-by-step refinement and top-to-bottom design structure. System development and design analysis diagram is shown in Figure 4-1
Figure 4-1 Basic design of system development and design Figure
4.2 System design
The system requires not only perfect functions, but also a friendly interface. Therefore, for a successful system design, the design of functional modules is the key. Because this system can perform general teaching management work, this system has general applicability, and the functions it realizes can meet the school's management of daily course website work, and facilitate the communication between teachers and students. The data flow analysis phase of the system design image requires a structured design outline, based on certain procedures mapped to the software architecture. First, the whole system is divided into several small modules, small problems, and then, the modules are further subdivided and details are added.
According to the demand analysis of the news release system, it is determined that the system is divided into two types: front-end news display and back-end management. The front-end news display module is divided into several modules such as news browsing, news search, and message board. The administrator logs in to the back-end management area through the input user name and password, and can manage the back-end page, news category management, news management, announcement management and system Set the operation of several modules such as [11]. As shown in Figure 3-2
, in this system, according to the analysis of system requirements, the following requirements can be summarized:
(1) The system should have a front desk and a background;
(2) The system front desk should be able to display news columns and news and The login interface used for administrators to log in to the background of the system;
(3) General users should be able to browse news freely in the foreground, including selectively browsing news, that is, first selecting the news column and then browsing the news items under the news column; (4) Registered
users can To publish relevant news comments, the system administrator should be able to log in to the system
background;
(5) The system administrator should be able to view, modify, delete, and add operations to news columns and news, and can also manage registered users. Comments on related news are managed.
From the analysis of the above requirement set, we can know:
(1) "News column" and "News" are the two main contents of the system, so they should be regarded as a class respectively, and the display of news column and news needs to be managed by the management class, and the system administrator needs to Viewing, adding, modifying and deleting columns and news also requires corresponding management classes to manage, so the system needs “column management class” and “news management class” for news columns and news respectively; (2) The system
should There must be roles such as super administrator, administrator, and registered user. The super administrator has the highest authority, the administrator is issued by the super administrator, and the registered user is generated by the front-end registration.
(3) To save information, the system must use a database, so a database connection class is required;
(4) In order to successfully implement each function of the system, corresponding control classes are indispensable. Therefore, the main classes of the system are identified: news management class, column management class, user management class, comment management class, connection object class of database connection and various classes.
4.3 System database design
The database of the news system contains three tables: basic news information table: fz_news, user message table: Discuss and user information table: users.
The structures of these tables are described below.
1. The basic news information table fz_news
The basic news table fz_news is used to store the basic information of online news, and its structure is shown in Table 4-1.

serial number Field Name data structure illustrate
1 id int news number
2 title varchar(150) Headlines
3 fenlei Varchar(50) categories of news
4 content text content
5 addtiome varchar(50) submission time
6 adder varchar(50) login username
7 visit int Views
8 Mr Varchar(500) keywords

Table 4-1 News basic information table fz_news
In MySQL, three data types, int, varchar, and text, can be used to store character data. The content character in the table fz_news is used to store the content of the news. Since the text content of the general news is relatively long, the text data type is used. In MySQL, the text data type is also variable in length and can store a large amount of data.
2. User's comment table pl
User's comment table pl is used to store user's comments on news. The structure of this table is shown in Table 4-2.

serial number Field Name data structure illustrate
1 id int serial number
2 not int News ID
3 context Varchar(500) news content
4 member varchar(50) Commentator
5 addtime Varchar(50) submission time

Table 4-2 Structure of comment table pl Table
3. User information table admin
The user information table admin is used to store the basic information of users. The structure is shown in Table 4-3.

serial number Field Name data structure illustrate
1 id int serial number
2 username varchar(50) username
3 password varcahr(50) password
4 creatme datatime Registration time
5 flag int gender
6 Jesus int age
7 logintimes int login time
8 quanxian varchar(100) permissions

Table 4-3 User admin information table



Chapter 5 System Function Realization
5.1 Foreground News Release System Interface
Input in the address bar: http://localhost:8080/xwtj Visitors can enter the front desk news interface to browse the news release system as shown in Figure 5-1.


Figure 5-1 Front desk press release system interface



5.1.1 User registration interface
If we want to experience this system better, we need to register a member first, so that we can comment and experience the system better. The registration interface is shown in Figure 5-2


5-2 User registration page
The user registration interface is to store data in the table member in the database through the personReg method in the MemberBean.java class and the servlet class. The registration code is:
public int personReg(String username,String password,String type ,String realname,String sex,String bir,String sheng,String city,String telphone,String email,String question,String answer,String lastip,int off,String address){ password=MD5.MD5(password); String sql
= "insert into member(username,password,type,regtime,ifuse,logintimes,lasttime,lastip)" +"values('"+username+"','"+password+"','"+type+"','"+ date+"','"+off+"','0','"+date+"','"+lastip+"') ";DBO dbo = new DBO();dbo.open();try{int i = dbo. executeUpdate(sql);
if(i == 1){ rs = dbo.executeQuery("select id from member where username='"+username+"'");rs.next();int mid = rs.getInt(1); String sql2 = "insert into pmember(mid,realname,sex,bir,sheng,city,telphone,email,question,answer,address)"+"values('"+mid+"','"+realname+"','"+sex+"','"+bir+"','"+sheng+"','"+city+"','"+telphone+"','"+email+"','"+question+"','"+answer+"','"+address+"')";int j = dbo.executeUpdate(sql2);if(j == 1)return Constant.SUCCESS;elsereturnConstant.SYSTEM_ERROR;}else{returnConstant.SYSTEM_ERROR; }}catch(Exception e){ return Constant.SYSTEM_ERROR; }finally{dbo.close();} After logging in, the user can have some basic permissions, comment permission and the user can read and post corresponding comments. The user login interface is shown in Figure 5-3:5.1.2 User login interface
}


Figure 5-3 User login interface
The user login interface also uses the MemberBean.java class to query whether the user exists in the table member. The core code is as follows:
public int memberLogin(String username,String password,String type){ password=MD5.MD5 (password); String sql = "select password from member where username='"+username+"' and type='"+type+"' and ifuse='1' "; //String sql2 = "update member set logintimes= logintimes +1,lasttime='"+date+"',lastip='"+lastip+"' where username='"+username+"' "; DBO dbo = new DBO(); dbo.open(); try { rs = dbo .executeQuery(sql); if(rs.next()){//If there is the username String str = rs.getString("password"); if(str.trim(). equals(password)){ //dbo.executeUpdate(sql2); return Constant.SUCCESS; } else{














return Constant.PASSWORD_ERROR;
}
}
else{//If there is no
return Constant.NAME_ERROR;
}
}catch(Exception e){ return Constant.SYSTEM_ERROR; }finally{ dbo.close(); } } 5.1.3 User browsing news interface user After logging in, you can browse the news, click on the corresponding column to read the corresponding news content, and quickly find the news we want to see, as shown in Figure 5-4:







Figure 5-4 User browsing news interface
5.2 Background news interface system
Enter in the address bar: http://localhost:8080/xwtj/admin/login.jsp to enter the background administrator login interface, as shown in Figure 5-2:


Figure 5-2 Administrator login interface The
background management interface completes the login by matching the data in the fz_admin table. The core code is as follows:
public int adminLogin(String username,String md5password,String password,String loginip,String useros){ String sql = "select * from fz_admin where username = '"+username+"' and isuse='1'"; String sql4 = "update fz_admin set logintimes = logintimes+1 where username = '"+username+"' "; DBO dbo = new DBO(); String pwd; dbo.open(); try{ rs = dbo.executeQuery(sql); if(rs.next()){ pwd = rs.getString("password"); if(pwd.trim( ).equals(md5password)){ dbo.executeUpdate(sql4); return Constant.SUCCESS; } else{ return Constant.PASSWORD_ERROR; }
















}
else{ return Constant.NAME_ERROR; } }catch(Exception e){ e.printStackTrace(); return Constant.SYSTEM_ERROR; }finally{ dbo.close(); } } 5.21 The background management interface can enter the background after the administrator logs in The main functions of the management interface and background management interface include system account management, announcement management, news column management, news information management, registered user management, and friendship link management functions, as shown in Figure 5-5:











Figure 5-5 Background management interface
5.2.2 News column management interface
In the news column management, you can add and delete the foreground news column, which can be used to complete the management of the news column. The news column deletion interface is shown in Figure 5-6 Shown:


Figure 5-6 News column deletion interface
The core code of news column deletion is as follows:
if(method.equals("delFenlei")){//delete category
String id=request.getParameter("id");
int flag = newsBean.delFenlei (id);
if(flag == Constant.SUCCESS){ request.setAttribute("message", "Operation succeeded!"); request.getRequestDispatcher(sysdir+"/fenlei/index.jsp").forward(request, response) ; } There is also an increase in the news column as shown in Figure 5-7:




Figure 5-7 Add interface of news column
The core code of the interface of adding news column is as follows:
if(method.equals("addFenlei")){//add category
String title=request.getParameter("title");
int flag = newsBean. addFenlei(title);
if(flag == Constant.SUCCESS){ request.setAttribute("message", "Operation succeeded!"); request.getRequestDispatcher(sysdir+"/fenlei/index.jsp").forward(request, response ); } else{ request.setAttribute("message", "The system is under maintenance, please try again later!"); request.getRequestDispatcher(sysdir+"/fenlei/index.jsp").forward(request, response); } } 5.2.3 News information management interface The news information management interface is the core part of the news system. It is an important function of news editing and publishing, news information management, news information release, and comment management. News information management is shown in Figure 5- 8 shows:










Figure 5-8 News information management interface
The core code of the news information management interface is as follows:
if(method.equals("DELNEWS")){//delete news
String check[] = request.getParameterValues("checkit");
if(check = = null){ request.setAttribute("message", "Please select the record to delete!"); request.getRequestDispatcher(sysdir+"/news/index.jsp").forward(request, response); } else{ int id2 []= new int[check.length]; for(int i = 0;i<check.length;i++){ int s = Integer.parseInt(check[i]); id2[i] = s; } int flag = new NewsBean().delNews(id2); if(flag == Constant.SUCCESS){ request.getRequestDispatcher(sysdir+"/news/index.jsp").forward(request, response); } else{














request.setAttribute("message", "The system is under maintenance, please try again later!");
request.getRequestDispatcher(sysdir+"/news/index.jsp").forward(request, response); } }
}
Publish
news
information As shown in Figure 5-9:


Figure 5-9 Release news interface
The core code of the release news interface is as follows:
if(method.equals("ADDNEWS")){//add news
String title = Filter.escapeHTMLTags(request.getParameter("title").trim( ));
String fenlei = request.getParameter("fenlei");
String content = request.getParameter("content1");
String gjz = request.getParameter("gjz");
if(content.length()>8000){ request.setAttribute("message", "Sorry, the content cannot exceed 8000 characters!"); request.setAttribute("method", method); request.getRequestDispatcher(sysdir+"/news/edit.jsp").forward(request , response); } else{ int flag = newsBean.addNews(title,fenlei,content, username2,gjz); if(flag == Constant. SUCCESS){ request.setAttribute("message", "Increase success!");








request.getRequestDispatcher(sysdir+"/news/index.jsp").forward(request, response);
}
else{ request.setAttribute("message", "The system is under maintenance, please try again later!"); request.getRequestDispatcher (sysdir+"/news/index.jsp").forward(request, response); } } } News comment management is shown in Figure 5-10







Figure 5-10 News comment management interface
The core code of the news comment management interface is as follows:
if(method.equals("mdelPl")){//delete comments
String id=request.getParameter("id");
int flag = newsBean.delMethod ("delete from pl where id='"+id+"'");
if(flag == Constant.SUCCESS){ request.setAttribute("message", "Operation succeeded!"); request.getRequestDispatcher(sysdir+"/news /pl.jsp").forward(request, response); } else{ request.setAttribute("message", "The system is under maintenance, please try again later!"); request.getRequestDispatcher(sysdir+"/news/pl. jsp").forward(request, response); } }









Chapter 6 System Test
6.1 Test Overview
It is necessary to consider which test plan to adopt before testing, so the test plan is a key technical issue in the test link. In order to improve test efficiency and reduce test cost and cost, this test plan adopts black box method design as the basic test plan, and then uses white box method test to supplement some plans. Test the process of software development. During the application development process, some functions are tested in a timely manner to ensure that there will not be too many functional defects after the development is completed and that the entire development process is of high quality. High quality is not just because of excellent code, only products that meet the needs of users can be said to be high-quality products.
6.2 Test environment
Win7 system, Firefox browser, database MySQL, IDE tool MyEclipse
6.3 Test content
This system is a news release and management system. First, conduct a smoke test on the system and randomly select a module to click to see if the system can basically run. The test content is mainly divided into two parts: the login module test of the front-end and back-end systems and the news function module test of the back-end system.
1. Login module test: This test mainly checks whether the registration function and login module of the front-end and back-end systems are normal. Since it is divided into ordinary users and administrator users, it is necessary to test whether the permissions of the two types of users are correct.
First enter the URL: http://localhost:8080/xwtj/ to test the home page. The login structure is shown in Figure 6-3:


Figure 6-3 Homepage interface
, followed by the administrator login interface test results shown in Figure 6-4:


6-3 Administrator login interface
The successful login interface is shown in Figure 6-4:


Figure 6-4 Login success interface



2. It is the operation authority of the administrator to be able to view, edit and delete the news. We need to test the authority of the administrator. When the administrator tests the news information management module, when he clicks to modify, the modification interface pops up and the result is as follows: As shown in Figure 6-5:


Figure 6-5 News information modification interface
When you click to release news information, the interface is shown in Figure 6-7:


Figure 6-7 Release news information interface
When clicking comment management, the interface is shown in Figure 6-8:


Figure 6-8 Comment Management Interface Diagram
Chapter 7 Summary
The advantage of this system is that the system is divided into two parts, which are divided into the front and back of the news release system, with a clear division of labor. The front is to provide users with better browsing news. , the background interface is for administrator management, update news, manage comments and user information, etc., where ordinary users log in to the front-end news release system to search, browse and leave messages for news, and administrators log in to the back-end news release system to release news, Operations such as writing, modifying and deleting, managing users, seeing user comments, and deleting some users who commented excessively, can reduce the access pressure of the front desk of the news release system to a certain extent, and the division of labor between the front and back is also clearer and clearer. Conducive to the use of various users.
The system uses the MVC architecture pattern, which can separate the functions of the system and divide the system into three levels. The Model is the part of the application program used to process the application data logic. It is the model of the system and the core layer. The View application program The part that handles data display is the view layer of the system. Controller is the part that handles user interaction in the application program. After the layer is fed back to the user, the information can be obtained.
By writing a news release system, I can better understand the power of programming languages. Through some design patterns, the system we write can be more powerful, more compatible, and more scalable. A powerful system should have good scalability. , strong compatibility, when we design the system, we use more popular design patterns to make the system more perfect.



References
[1] Li Wei. Design and Implementation of News Management System of Benxi Daily News [D]. Jilin University, 2016. [2
] Qin Jiawei. Design and Implementation of Member Management System Based on B/S Structure Fitness Center [D]. Jilin University, 2016.
[3] Kang Qilin. Design and Implementation of News Network Media Management Release System [D]. Jilin University, 2016. [4] Liu Shenju, Tian Dan. Campus News
Based on http://ASP.NET Design of publishing system [J]. Heilongjiang Science and Technology Information, 2016, (15): 185.
[5] Tian Chao. Design of bilingual teaching platform for computer network courses based on MySQL [D]. Inner Mongolia University, 2016.
[6] Zhao Jiasheng. Design and Implementation of Information Publishing System Based on Android Platform [D]. Yunnan University, 2016.
[7] History Annals. Project Development Experiment of News Management System [D]. Jilin University, 2015.
[8] Song Wei. Mobile Phone Synthesis Based on J2EE Website Design and Realization [D]. Jilin University, 2015.
[9] Sun Xiaodong, Zhang Yuhan. Sociological Analysis of the Dilemma of Value Consensus in the Web2.0 Era [J]. Journal of Beijing Institute of Technology (Social Science Edition), 2015, (06 ): 154-160.
[10] Tang Chen. Design and Implementation of Small News Release System [D]. Jilin University, 2015. [11
] He Xizhen. Design and Implementation of News Recommendation System Based on User Feedback Information [D]. Shandong Normal University, 2015.
[12] Xu Zhaoxia. Design and Implementation of Web-based Information Publishing and Information Exchange Platform [D]. Jilin University, 2015. [13] Shu Yanqiu. Research and Analysis of News Release Management
System [D]. Yunnan University, 2015.
[14] Zhou Bangding. Research and application of automatic retrieval method for customer negative news [D]. University of Science and Technology of China, 2015. [15]
Guo Rui. News release system based on B/S structure [D]. Jilin University, 2014.



Acknowledgments
So far, after summarizing and analyzing the existing work and experience, this paper is finally completed. My study career at the university is also coming to an end.
First of all, I would like to thank my mentor, Teacher XX. Teacher XX’s profound knowledge, rigorous academic attitude, and tireless teaching style of noble teachers and teachers not only provided me with a lot of information at the first time, but also gave me a lot of technical help. Mastering some basic research methods and methods also made me understand many ways of dealing with people. The thesis was completed under the guidance and help of teachers from the topic selection to every step of practice, and a lot of hard work and energy were devoted to the tutor. Here I would like to express my sincere gratitude and high respect to Mr. XX.
Secondly, I would like to express my heartfelt thanks to my alma mater, my parents, relatives, teachers and classmates. I would like to thank my family for their silent support for me over the past four years; I would like to thank my alma mater, University XX, for training me over the past four years, so that I have truly acquired the skills that can be used throughout my life;
At the same time, the compilation of this graduation thesis also received enthusiastic help from the students. Thanks to the partners who have helped me in various aspects throughout the graduation project, here, I once again sincerely express my gratitude to the teachers and classmates who have helped me!
Finally, I sincerely thank all the teachers who reviewed the papers and participated in the defense in their busy schedules!
Design and implementation of news release and management system
Abstract: With the popularization of computers, mobile phones and other devices that can be connected to the network, various websites have been designed and developed, with various functions and different fields involved, such as life, business, campus, etc. wait. The release of information is a major function of the Internet. The main demand of people surfing the Internet is to obtain the information they want or the information they are interested in, so the news release system based on the Internet was born.
From the emergence of websites in recent years, it is not difficult to see that people rely heavily on information websites to understand the outside world, and the demand is growing day by day. People are beginning to rely on these websites, and their information is not limited to There are several information websites, but the more the better, as long as they can satisfy their needs for information, the appearance of these websites has affected people's living habits and styles, and also provided people with leisure time after tea and dinner. Added a touch of richness.
These are the reasons why I will choose "News Publishing System Based on China" as the topic of my graduation project.
The design and development of the "news release system based on the Internet" described in this article uses the current popular framework development technology, and jsp+css+jQuery is used in the front-end design, just to give users the most perfect user experience. The background development of this application uses java development technology, and the database uses MySQL database for data storage operations.
Keywords: WEB; acquisition; information; influence; life
Abstract: With the computer, intelligent mobile phone can connect to the network equipment family and popular, designed and developed a variety of websites, a variety of functions, and relates to the field of different life, business and technology, etc.. The release of information is a major feature of the network, the main needs of people is to get the information they want or interest in the information, so the news release and management system is born.
In recent years, the WEB website recently sprung up is not difficult to see people on the outside information largely depends on the information release site, due to the popularity of smart mobile phone will lead to the demand in the growing, people began to rely on the information release site, the information reading is not limited to a few information website but, the more the better, as long as they can meet the demand of information about a website can be born, these information hair sites affect the people of our generation living habits and methods of obtaining information, but also adds color to people after the meal before tea amateur life.
The above is I will choose "news release and management system" as the reason of my graduation design topic.
This paper describes the news release and management system, the design and development of technology, front-end design using B/S technology, just to give the user the most perfect user experience. The background of the development of the application is the development of Java technology, the database uses the MySQL database for data storage operations.
Keyword:  WEB; press releases; JSP; system
0. Preface

With the wide application of network information, the development of Web-based information release platform is becoming more and more mature, intelligent More and more people choose to watch current affairs news, entertainment gossip, agricultural people's livelihood and other news on the Internet, and abandon the habit of reading newspapers and magazines before. In recent years, as the types and forms of websites have become more and more distinct, more and more websites for reading and downloading similar to documents have developed. Internet users can break through the time and space constraints on the Internet and realize online reading. The rise of online reading sites has had a strong impact on the traditional book circulation system, which has the characteristics of low operating costs, convenient user retrieval, and no geographical restrictions. This is precisely due to the convenience, speed, extensiveness and efficiency of the Internet, netizens only need to click on the news title they want to browse on the news information platform to browse the news content, so a Web-based The information release platform also came into being.
1. System requirements analysis
This news release system provides different types of news, such as focus news, rule of law news, sports news, entertainment news and picture news, etc. In order to meet the needs of different users, the system divides users into three categories, namely browsers, common users and system administrators.
Viewers can browse, read and search for news in this system. The title of each news is made into a link, and users can jump to the page for news reading by clicking them; on the news reading page, the detailed information of each news will be taken out, including content, title, etc.; If you like to search and read news, you can manually enter the news keywords you are interested in in the search bar to search for news, and the search results will be uniformly displayed at the bottom of the search bar for the viewer to choose; To comment on the news, you need to register as an ordinary user and log in to the corresponding interface to comment on the news. In addition to the operating functions that browsers have, member users of the system can also comment on the news they are interested in, but the premise is that they must first log in to the news system as a user. The news release system is divided into two systems, front and back, the front is for viewers and ordinary users, and the background is for administrators and super administrators. After the administrator logs in to the background news release system, the unique function is to The operation of adding, deleting, modifying and checking the news also has the function of adding, deleting, modifying and checking the message module, and also has the function of adding and deleting users. The super administrator has greater authority than the administrator, and has the operation authority to add and delete the administrator.
With the informatization and networkization of society, people's dependence and trust on the network is also increasing day by day, and the development of the network has also achieved unprecedented development, because the demand determines the direction of development, and a large part of people's dependence on the network comes from the network. There is a wide range of information, and the Internet can bring them the latest, fastest, and most complete information. The most important point is that it can satisfy any information they want to know. News is the most direct way to receive information, so the news release system was born, which can satisfy the public's interest in information and curiosity about people and things in this world. The news release system has promoted the diversification of news media to a certain extent, and it is another channel for people to get to know their surroundings, the country and the world. Therefore, the news release system is very feasible and has certain market value. .
Moreover, compared with news media such as TV, the news release system has the advantages of strong operability and strong communication. If you want to know which aspect of news, you only need to perform a simple keyword search in the system, and you will be able to Present the news you want to pay attention to and understand in front of your eyes, but news media such as TV only broadcast the news of the public, and you cannot browse it as you like, but the news release system can do this. Another point is that in the news release system, as long as you log in as an ordinary user, you can comment on the news you are interested in, so that others can see your own views, and at the same time, you can also see other people's comments, and discuss and communicate with them. It is far beyond the reach of TV and other news media.
The news release system is a site-wide management system based on news and content management. This system can organize messy information and present it to everyone in a reasonable and orderly manner. News, as the most direct way of receiving information, plays a role that cannot be ignored in people's lives, and the news release system releases the current popular and various types of news together, allowing people to freely browse and actively search for their own feelings. Such a system of interesting news. Since the news release system can meet this non-negligible demand of the public, of course it will become more and more important and indispensable.
In order to enable readers to further understand the design of this example system, this section will analyze the process of the system. Identity authentication can be divided into the following two processes:

      1. Verify that the user is a valid system user.
      2. Determine the type of user.

The first process determines whether the user can enter the system. The second process determines the user's operation authority according to the user type, thereby determining the user's work interface.

The system is divided into two parts, the foreground system and the background system. The front-end system does not require identity authentication, and anyone can read published news and post comments from netizens through a browser.

2. System design

The news release and management system includes browser module, user module, administrator module and other modules. The specific description is as follows:

a. Viewer use case description

Name: Viewer Module

Participating performers: browsers

Precondition: The database is already connected

The basic process of the activity:

  1. Enter the news home page.
  2. Registration is possible.
  3. You can browse news and search news.
  4. Cannot comment on news.

Post-condition: If the viewer completes the registration and exits, the corresponding operation information of the user will be recorded in the database.

b. Common user use case description

Name: User Module

Participating executors: registered users

Precondition: The database is already connected

The basic process of operation:

  1. If you already have an account of an ordinary user of the system, you only need to fill in your personal login information and log in; if not, you need to perform the "register" operation first, and then log in.
  2. After successfully logging in, it will automatically jump to the news home page, and you can freely perform operations such as news search, browsing and leaving messages.

c. System administrator use case description

Name: Admin Module

Participants: administrators

Preconditions: The system administrator has logged in and the database has been connected

The basic process of the activity:

  1. Enter the user management interface, display the currently registered users and the information of each user.
  2. Manage user messages.
  3. Manage user personal information.
  4. Perform management operations on all news, specific management operations include: add new news, find news, modify news and delete news.
  5. The administrator password can be changed.

Post-condition: The data shows the updated data, and the data has been updated in the database.

Database design : This section will introduce the script files for creating tables. These scripts can be executed in "Query Analyzer" to create tables in the database news.

1. Create tableCategory

The script file for creating the table category is Category.sql, and its code is as follows:

USE news

GO

CREATE TABLE Category

(

CateId Int IDENTITY PRIMARY KEY,

CateName Varchar(50) NOT NULL

)

GO

When using the CREATE TABLE command to create a table, you should pay attention to using the PRIMARY KEY keyword to define the primary key of the table. The primary key of each row in the table has a unique value, and the primary key can be used to uniquely identify a row of data.

2. Create table News

The script file for creating table News is News.sql, and its code is as follows:

USE news

GO

CREATE TABLE News

(

Id Int IDENTITY PRIMARY KEY,

Title Varchar(100) NOT NULL,

Content Text,

PostTime Datetime,

Poster Varchar(50),

CateId Int,

Attpic Int DEFAULT 0,

ReadCount Int DEFAULT 0

)

GO

When using the CREATE TABLE command to create a table, you should pay attention to using the NOT NULL keyword to define the non-null fields of the table. Sometimes we require that a field of the table must not be empty. If the field is empty, it will cause serious impact on the system when it is running. For example, the Title field in the table News will not be empty, otherwise a blank row will appear in the news list.

When using the CREATE TABLE command to create a table, use the DEFAULT keyword to specify the default value of the field. For example, in the News table, the default value of the Attpic and ReadCount fields is 0.

3. Create table Discuss

The script file for creating table Discuss is Discuss.sql, and its code is as follows:

USE news

GO

CREATE TABLE Discuss

(

Id Int IDENTITY PRIMARY KEY,

UserId Varchar(20),

PosttimeSmalldatetime,

ContentVarchar(4000),

NewsIdInt

)

GO

When using the CREATE TABLE command to create a table, the IDENTITY keyword is usually used together with the PRIMARY KEY keyword to create an identification field. This field is automatically incremented each time there is an increment operation.

4. Create table Users

The script file for creating table Users is Users.sql, and its code is as follows:

USE news

GO

CREATE TABLE Users

( UserIdInt Primary Key IDENTITY,

UserName Varchar(50) NOT NULL,

UserPwd Varchar(50) NOT NULL,

Ename Varchar(50),

Email Varchar(50)

)

GO

INSERT INTO Users (UserName, UserPwd, Ename, Email) VALUES('Admin', '111111', '', '')

GO

After creating the user information table users, insert the "super administrator" (admin), the user with the highest authority, into the table at the same time, and set a default and easy-to-remember password: 123456.

Before executing these scripts, please make sure that the database news already exists, otherwise an error will occur. If the table to be created already exists, you need to delete the table first.

3. Realization of system functions

System UI interface implementation: main page: the main page uses css+div technology, so that all operations and page jumps are carried out in one page style. Divide the system into two: foreground and background systems. It only needs to connect the two systems to a database, and after the background administrator has released the news, the front-end user only needs to refresh the page to view the news just released. The basic principle of this permission restriction is: Store part of the information of the user logged into the background through the session. The most important thing is the user's style value, and then get the style value of the logged-in user in the JSP page, and judge the value of the style. If it is 1, it will jump to correct page, otherwise it will not be allowed to jump and a warning box will pop up. In this way, the functions of login and registration are realized, and the division of permissions is very clear.

The management of news is mainly a process of adding, deleting, modifying and checking the database. When the news reaches a certain amount, the pages cannot be displayed in full. At this time, the paging technology is used. I wrote a class for paging to control each The display number of pages and the effect of turning pages.

  1. Summarize
  2. The advantage of this system is that it divides the system into two parts, the front desk and the background of the news release system, with a clear division of labor. Viewers or ordinary users log in to the news release system at the front desk to search, browse and leave messages. Administrators or super managers Members log in to the background news release system to perform operations such as news release, editing, and deletion, operations such as adding and deleting users, and operations such as viewing and deleting messages, and can reduce the access pressure on the front desk of the news release system to a certain extent. The division of labor between the front and back is also clearer, which is more conducive to the use of various users. The functions of the system are too simple. For example, in addition to the functions of searching, browsing and leaving messages, ordinary users only have the function of simply changing passwords. The functions of ordinary users are too single and simple. So far I have completed my graduation thesis. First of all, I would like to thank my supervisor, Mr. Luo Laijun. Teacher Luo Laijun’s profound knowledge, rigorous academic attitude, and tireless teaching and noble morality not only provided me with a lot of information in the first place, but also helped me a lot in technology. Let me master some basic research methods and methods, and also let me understand many ways of dealing with people. From the topic selection to the practice of each step, the thesis was completed under the guidance and help of the teacher, and a lot of effort and energy was devoted to the teacher. . Here I would like to express my sincere gratitude and high respect to Mr. Luo Laijun.
  3. Secondly, I would like to express my heartfelt thanks to my alma mater, my parents, relatives, teachers and classmates. Thanks to my family for their silent support over the past four years; thanks to my alma mater, Jiangxi University of Science and Technology (Nanchang Campus), for training me over the past four years, so that I have truly acquired the skills that will be useful for a lifetime;
  4. At the same time, the compilation of this graduation thesis also received enthusiastic help from the students. Thanks to the partners who have helped me in various aspects throughout the graduation project, here, I once again sincerely express my gratitude to the teachers and classmates who have helped me!

references

[1] Li Wei. Design and Implementation of News Management System of Benxi Daily [D]. Jilin University, 2016.

[2] Qin Jiawei. Design and Implementation of Member Management System Based on B/S Structure Fitness Center [D]. Jilin University, 2016.

[3] Kang Qilin. Design and Implementation of News Network Media Management Release System [D]. Jilin University, 2016.

[4] Liu Shenju, Tian Dan. Design of Campus News Publishing System Based on http://ASP.NET [J]. Heilongjiang Science and Technology Information, 2016, (15): 185.

[5] Tian Chao. Design of bilingual teaching platform for computer network courses based on MySQL [D]. Inner Mongolia University, 2016.

[6] Zhao Jiasheng. Design and Implementation of Information Publishing System Based on Android Platform [D]. Yunnan University, 2016.

[7] Annals of History. Project Development Experiment of News Management System [D]. Jilin University, 2015.

[8] Song Wei. Design and Implementation of J2EE-Based Mobile Comprehensive Website [D]. Jilin University, 2015.

[9] Sun Xiaodong, Zhang Yuhan. Sociological Analysis of the Dilemma of Value Consensus in the Web2.0 Era [J]. Journal of Beijing Institute of Technology (Social Science Edition), 2015, (06): 154-160.

[10] Tang Chen. Design and Implementation of Small News Release System [D]. Jilin University, 2015.

[11] He Xizhen. Design and Implementation of News Recommendation System Based on User Feedback Information [D]. Shandong Normal University, 2015.

[12] Xu Zhaoxia. Design and Implementation of Web-based Information Publishing and Information Exchange Platform [D]. Jilin University, 2015.

[13] Cai Jian, Jing Nan. Java Web Application Development: J2EE and Tomcat [M]. Beijing: Tsinghua University Press, 2004.

[14] Shu Yanqiu. Research and Analysis of News Release Management System [D]. Yunnan University, 2015.

[15] Zhou Bangding. Research and application of automatic retrieval method for customer negative news [D]. University of Science and Technology of China, 2015.

[16] Guo Rui. News release system based on B/S structure [D]. Jilin University, 2014.

Guess you like

Origin blog.csdn.net/m0_66999594/article/details/128604766