2、application.properties# 应用名称spring.application.name=token2038# 应用服务 WEB 访问端口server.port=2038spring.redis.host=localhostspring.redis.port=6379spring.redis.database=13、RedisServiceimport org.springfra
<!-- redis --> <dependency> <groupId>org.springframework.boot</groupId> <artifactId>spring-boot-starter-data-redis</artifactId> </dependency> @Config
<dependency> <groupId>org.springframework.boot</groupId> <artifactId>spring-boot-starter-web</artifactId> </dependency>
<?xml version="1.0" encoding="UTF-8" ?> <!DOCTYPE mapper PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" "http://mybatis.org/dtd/mybatis-3-mapper.dtd" > <mapper namespace="cn.codesheep.spri
package com.example.demo.controller; import org.springframework.web.bind.annotation.GetMapping; import org.springframework.web.bind.annotation.RestController; import java.sql.*; @RestController publ
Copyright © 2005-2024 51CTO.COM 版权所有 京ICP证060544号