Category: spring boot

Spring Boot parameter transfer method 0

Spring Boot parameter transfer method

Hits: 0Recently, I am working on a Spring Boot project, so I will summarize the way of passing parameters. I also refer to some articles on the Internet, the summary is very good, here...

3. spring-bootmybatis query database by annotation method 0

3. spring-bootmybatis query database by annotation method

Hits: 0domain/User.class package com.spring.boot.domain; public class User { private int id; private String username; private String password; } mapper/UserMapper package com.spring.boot.mapper; import com.spring.boot.domain.User; import org.apache.ibatis.annotations.Mapper; import org.apache.ibatis.annotations.Select; import java.util.List; @Mapper public interface UserMapper {...

Springboot Nursing Home Management System 0

Springboot Nursing Home Management System

Hits: 0 Author’s homepage: Ye Weiyang 5788 Introduction: high-quality creators in the Java field, Java projects, learning materials, technical mutual assistance Get the source code at the end of the article Project Introduction Based...

SpringBoot (two ways to use each) 0

SpringBoot (two ways to use each)

Hits: 0SpringBoot (two ways to use each) 1.Controller @RequestMapping("/success") public String success(Map<String,Object> map){ map.put("users", Arrays.asList("zhangsan", "lisi", "wangwu")); return "success"; } 2.Display in html (thymeleaf framework) <div th:text="${user}" th:each="user:${users}"></div> <hr> <div th:each="user:${users}">[(${user})]</div> The first way...

Create a simple timed task scheduling Job in the SpringBoot project 0

Create a simple timed task scheduling Job in the SpringBoot project

Hits: 0Foreword: This blog mainly explains how to create a simple timer job in the SpringBoot project. First create a timer task scheduling class CalendarScheduleJob : package com.hdyanfa.interact.job; import org.slf4j.Logger; import org.slf4j.LoggerFactory; import org.springframework.scheduling.annotation.Scheduled;...

[Spring Boot] 2. First acquaintance 0

[Spring Boot] 2. First acquaintance

Hits: 0 Spring BootIt is a brand-new open source lightweight Javaframework that inherits the Springoriginal excellent features of the framework, and further simplifies the entire Springapplication . — Baidu Encyclopedia Because of the first...