Design and implementation based on Java Literature Network (source code + lw + deployment documents + explanation, etc.)

Blogger Introduction: ?300,000+ fans across the entire network, csdn guest author, blog expert, CSDN Rising Star Program mentor, high-quality creator in the Java field, Blog Star, Nuggets / Huawei Cloud / Alibaba Cloud / InfoQ and other platforms are high-quality authors, focusing on the field of Java technology and practical graduation projects?

Contact for source code at the end of the article

Recommended subscription for wonderful columns Otherwise, you won’t find it next time

The most comprehensive collection of computer software graduation project topics for 2022-2024: 1,000 popular topic recommendations?

Java project quality practical cases “100 sets”

Java WeChat Mini Program Project Practical “100 Sets”

If you are interested, you can save it first. If you have questions about graduation topics, projects, thesis writing and other related questions, you can leave me a message for consultation. I hope to help more people

?

System introduction:

Nowadays, the power of science and technology is becoming more and more powerful. By combining with more mature computer technology, it has promoted the development of many industries such as schools, medical care, and shopping malls. In order to adapt to the changes of the times, various industries have carried out management informatization construction by combining technologies such as the Internet and artificial intelligence. The traditional information management model mainly counts and stores literary information through manual recording. This management model is easy to lose information and is inconvenient for managers to update and query relevant data. Compared with the traditional management model, the information management model mainly uses computers to store and manage relevant information records. The operation is simple and convenient, and the specific flexibility is strong. It is easy to query and update data, which is conducive to relevant personnel within the same time. , complete more work, and reduce the probability of staff errors as much as possible. On the idea integrated development platform, the literature website adopts the B/S development structure model, and uses Java language to write relevant codes, design system function modules, MySQL database to design data tables, store literary information, and Tomcat server to publish system URLs and process requests. and response messages. The development of this system improves the working mode of managers in related industries, which is conducive to simplifying work processes, accelerating work progress, and improving information processing efficiency.

Keywords: Literary website; Java language; B/S architecture; MySQL database

The overall development process of this system is carried out using the B/S structure model. System-related functions are designed using Java language, MySQL database and other technologies. After the functional design is completed, the system can be run and used by using a browser. Through the relevant content of the requirements analysis, the main functional design of the system can be basically determined. The users of the WEB-based literature network are mainly divided into administrator roles and user roles. The main functional requirements include user management, novel information management, reading record management, etc. The overall functional design diagram of the system is shown in Figure 4-1.

When the program is handed over to the user for use, the operation flow chart of the program needs to be provided, so that the user can easily understand the specific working steps of the program. Nowadays, the operation process of the program has a general standard, that is, first submit the login data through the login page, After the program is verified correctly, the user can operate the corresponding function on the program function operation area page.

?

Program operation flow chart

Function screenshot:

5.1 Personal Center

The main purpose of the design of the personal center module is to facilitate users to manage personal information such as passwords. Users can choose to update the username and password of their personal accounts at regular intervals according to their actual needs. The password modification interface is designed as shown in Figure 5-1. Display, the personal information interface is shown in Figure 5-2.

Figure 5-1 Password modification interface

Figure 5-2 Personal information interface

5.2 User Management

The main purpose of the design of the user management module is to facilitate management users to manage relevant user information. Management users can choose to view the user’s contact number and modify the user’s real name. The user management interface design is shown in Figure 5-3.

Figure 5-3 User management interface

5.3 Author Management

The main purpose of the design of the author management module is to facilitate management users to manage relevant author information. Management users can choose to view the author’s detailed content, modify author information records, and delete invalid author information records. The author management interface design is shown in Figure 5-4 shown.

Figure 5-4 Author management interface

5.4 Novel Management

The main purpose of the novel management module is to facilitate management users to manage related novels, novel messages, bookshelf, and novel purchase information. Management users can choose to view the details of novels, novel messages, bookshelf, and novel purchase information, and modify novels and novels. Messages, bookshelf, and novel purchase information records. Delete invalid novels, novel messages, bookshelf, and novel purchase information records. The design of the novel management interface is shown in Figure 5-5. The design of the novel message management interface is shown in Figure 5-6. Bookshelf The management interface design is shown in Figure 5-7, and the novel purchase management interface design is shown in Figure 5-8.

Figure 5-5 Novel management interface

Figure 5-6 Novel message management interface

Figure 5-7 Bookshelf management interface

Figure 5-8 Novel purchase management interface

5.5 Chapter Management

The main purpose of the design of the chapter management module is to facilitate management users to manage relevant chapter information. Management users can choose to view the details of chapters, modify chapter information records, and delete invalid chapter information records. The chapter management interface design is shown in Figure 5-9. shown.

Figure 5-9 Chapter management interface

5.6 Reading Record Management

The main purpose of the design of the reading record management module is to facilitate management users to manage related reading record information. Management users can choose to view the details of reading records, modify reading record information, and delete invalid reading record information. The reading record management interface is designed as follows As shown in Figure 5-10.

Figure 5-10 Reading record management interface

5.7 Basic Data Management

The main purpose of the design of the basic data management module is to facilitate management users to manage relevant novel type information. Management users can choose to view the details of novel types, modify novel type information records, delete invalid novel type information records, and the novel type management interface The design is shown in Figure 5-11.

Figure 5-11 Novel type management interface

5.8 carousel image management

The main purpose of the design of the carousel chart management module is to facilitate management users to manage relevant carousel chart information. Management users can choose to view the details of the carousel chart, modify the carousel chart values, delete invalid carousel chart information records, and The design of the broadcast management interface is shown in Figure 5-12.

Figure 5-12 Carousel chart management interface

Code implementation:

/**
 * Login related
 */
@RequestMapping("users")
@RestController
public class UserController{
    
    @Autowired
    private UserService userService;
    
    @Autowired
    private TokenService tokenService;

    /**
     * Log in
     */
    @IgnoreAuth
    @PostMapping(value = "/login")
    public R login(String username, String password, String role, HttpServletRequest request) {
        UserEntity user = userService.selectOne(new EntityWrapper<UserEntity>().eq("username", username));
        if(user != null){
            if(!user.getRole().equals(role)){
                return R.error("Permissions are abnormal");
            }
            if(user==null || !user.getPassword().equals(password)) {
                return R.error("Account or password is incorrect");
            }
            String token = tokenService.generateToken(user.getId(),username, "users", user.getRole());
            return R.ok().put("token", token);
        }else{
            return R.error("Account or password or permissions are incorrect");
        }

    }
    
    /**
     * register
     */
    @IgnoreAuth
    @PostMapping(value = "/register")
    public R register(@RequestBody UserEntity user){
// ValidatorUtils.validateEntity(user);
        if(userService.selectOne(new EntityWrapper<UserEntity>().eq("username", user.getUsername())) !=null) {
            return R.error("User already exists");
        }
        userService.insert(user);
        return R.ok();
    }

    /**
     * quit
     */
    @GetMapping(value = "logout")
    public R logout(HttpServletRequest request) {
        request.getSession().invalidate();
        return R.ok("Exit successfully");
    }
    
    /**
     * reset Password
     */
    @IgnoreAuth
    @RequestMapping(value = "/resetPass")
    public R resetPass(String username, HttpServletRequest request){
        UserEntity user = userService.selectOne(new EntityWrapper<UserEntity>().eq("username", username));
        if(user==null) {
            return R.error("Account does not exist");
        }
        user.setPassword("123456");
        userService.update(user,null);
        return R.ok("Password has been reset to: 123456");
    }
    
    /**
     * list
     */
    @RequestMapping("/page")
    public R page(@RequestParam Map<String, Object> params,UserEntity user){
        EntityWrapper<UserEntity> ew = new EntityWrapper<UserEntity>();
        PageUtils page = userService.queryPage(params, MPUtil.sort(MPUtil.between(MPUtil.allLike(ew, user), params), params));
        return R.ok().put("data", page);
    }

    /**
     * information
     */
    @RequestMapping("/info/{id}")
    public R info(@PathVariable("id") String id){
        UserEntity user = userService.selectById(id);
        return R.ok().put("data", user);
    }
    
    /**
     * Get the user's session user information
     */
    @RequestMapping("/session")
    public R getCurrUser(HttpServletRequest request){
        Integer id = (Integer)request.getSession().getAttribute("userId");
        UserEntity user = userService.selectById(id);
        return R.ok().put("data", user);
    }

    /**
     * save
     */
    @PostMapping("/save")
    public R save(@RequestBody UserEntity user){
// ValidatorUtils.validateEntity(user);
        if(userService.selectOne(new EntityWrapper<UserEntity>().eq("username", user.getUsername())) !=null) {
            return R.error("User already exists");
        }
        userService.insert(user);
        return R.ok();
    }

    /**
     * Revise
     */
    @RequestMapping("/update")
    public R update(@RequestBody UserEntity user){
// ValidatorUtils.validateEntity(user);
        userService.updateById(user);//Update all
        return R.ok();
    }

    /**
     * delete
     */
    @RequestMapping("/delete")
    public R delete(@RequestBody Integer[] ids){
        userService.deleteBatchIds(Arrays.asList(ids));
        return R.ok();
    }
}

Paper reference:

Source code acquisition:

Everyone like, collect, follow, comment, viewget contact information

Recommended subscription for wonderful columns: In the column below

The most comprehensive collection of computer software graduation project topics for 2022-2024: 1,000 popular topic recommendations?

Java project quality practical cases “100 sets”

Java WeChat Mini Program Project Practice “100 Sets”

The knowledge points of the article match the official knowledge files, and you can further learn related knowledge. Java Skill TreeHomepageOverview 137896 people are learning the system