JSP+MYSQL news publishing system based on jsp+servlet+mysql

Let's talk about the JSP-based news publishing system, which uses technologies such as JavaBean, filler, database, etc., which can realize the function of news publishing, and delete, modify, or continue to each news after publishing. Add new articles, and finally can perform query function, which refers to Baidu editor, which can be edited with pictures and texts, which is greatly convenient for users to use.
Note: The complete project download address: news release system (the following part of the code is different from the download address, but it is only optimized, you can ask me at any time if you have any questions)

The code has been uploaded to github, and the download address is: https://github.com/21503882/news
1. Effect demonstration
First, let's take a look at the effect achieved:
the following is the first interface of login:

 

Front-end system module diagram Front-
end framework: layui
data visualization framework: echarts
back -end
IOC container: Spring
MVC framework: SpringMVC
ORM framework: 
caching technology: Redis
database: Mysql
Log framework: Log4j
Security framework: 

Backend system module

For news search, similar to others, here we use the information needed to query the news number, and then display it on a new page.
Second, the specific implementation process
 1. Environment: The programming environment is NetBeans8.0 and Oracle Database
 2. Design of database background
    In the news management system, we need database background management. The specific steps are as follows:
Build a table according to the required business, as shown in the following: Building a database
 3. Writing steps:
(1 ) First create a project, which is named Demo_08_NewsRealese here. The project layout structure is shown in the figure below. The layout of the project is designed according to the following layout, which is convenient for subsequent programming. The web-inf in the project is the project configuration folder, and the images folder is used To store the image files used in the project, ueditor is the Baidu rich text editor folder, and the source package folder is the Java class folder:


Project layout structure diagram
Next, we create the database connection layer, namely DAO and VO, which are stored in the packages com.lut.beans and dao respectively, and the class names are respectively named NewsRealese and NewsRealeseDao. For the class NewsRealese, it is mainly to realize the string , whose content corresponds to the content in the database one-to-one, and the codes are as follows:

Home
News Details
Comments
Admin login
Admin interface after login
Add news
Manage news
Manage comments

Manage news categories
Admin management

 The code has been uploaded to github, download address: https://github.com/21503882/news

Guess you like

Origin http://43.154.161.224:23101/article/api/json?id=324074153&siteId=291194637