mirror of
https://gitee.com/ChinaLym/shoulder-platform.git
synced 2025-12-30 11:02:26 +00:00
compile success base on jdk17, spring boot 3.x, shoulder 0.8
This commit is contained in:
@@ -1,6 +1,6 @@
|
||||
package cn.itlym.shoulder.platform.gateway.client.dto.param;
|
||||
|
||||
import javax.validation.constraints.NotEmpty;
|
||||
import jakarta.validation.constraints.NotEmpty;
|
||||
|
||||
/**
|
||||
* @author lym
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
package cn.itlym.shoulder.platform.gateway.client.dto.param;
|
||||
|
||||
import javax.validation.constraints.NotEmpty;
|
||||
import jakarta.validation.constraints.NotEmpty;
|
||||
|
||||
/**
|
||||
* @author lym
|
||||
|
||||
@@ -1,10 +1,11 @@
|
||||
package cn.itlym.shoulder.generator;
|
||||
|
||||
import cn.itlym.shoulder.generator.service.SysGeneratorService;
|
||||
import jakarta.servlet.http.HttpServletResponse;
|
||||
import org.apache.commons.io.IOUtils;
|
||||
import org.mybatis.spring.annotation.MapperScan;
|
||||
import org.shoulder.core.dto.response.ListResult;
|
||||
import org.shoulder.core.dto.response.BaseResult;
|
||||
import org.shoulder.core.dto.response.ListResult;
|
||||
import org.shoulder.core.util.StringUtils;
|
||||
import org.springframework.boot.SpringApplication;
|
||||
import org.springframework.boot.autoconfigure.SpringBootApplication;
|
||||
@@ -14,7 +15,6 @@ import org.springframework.web.bind.annotation.RequestParam;
|
||||
import org.springframework.web.bind.annotation.ResponseBody;
|
||||
import org.springframework.web.bind.annotation.RestController;
|
||||
|
||||
import javax.servlet.http.HttpServletResponse;
|
||||
import java.io.IOException;
|
||||
import java.util.Map;
|
||||
|
||||
|
||||
@@ -8,7 +8,7 @@ import lombok.Builder;
|
||||
import lombok.Data;
|
||||
import lombok.NoArgsConstructor;
|
||||
|
||||
import javax.validation.constraints.NotNull;
|
||||
import jakarta.validation.constraints.NotNull;
|
||||
import org.hibernate.validator.constraints.Length;
|
||||
|
||||
#if(${hasBigDecimal})
|
||||
|
||||
@@ -7,7 +7,7 @@ import lombok.Data;
|
||||
import lombok.NoArgsConstructor;
|
||||
import org.hibernate.annotations.GenericGenerator;
|
||||
|
||||
import javax.persistence.*;
|
||||
import jakarta.persistence.*;
|
||||
#if(${hasBigDecimal})
|
||||
import java.math.BigDecimal;
|
||||
#end
|
||||
|
||||
@@ -8,7 +8,7 @@ import org.springframework.data.Page;
|
||||
import org.springframework.data.domain;
|
||||
|
||||
import ${package}.${pkgName}.entity.${className}Entity;
|
||||
import javax.transaction.Transactional;
|
||||
import jakarta.transaction.Transactional;
|
||||
|
||||
import java.util.List;
|
||||
import java.util.Map;
|
||||
|
||||
@@ -1,12 +1,15 @@
|
||||
package cn.itlym.shoulder.platform.notify.sms.entity;
|
||||
|
||||
import cn.itlym.shoulder.platform.notify.sms.dto.EmailDTO;
|
||||
import jakarta.persistence.Column;
|
||||
import jakarta.persistence.GeneratedValue;
|
||||
import jakarta.persistence.GenerationType;
|
||||
import jakarta.persistence.Id;
|
||||
import jakarta.persistence.Table;
|
||||
|
||||
import javax.persistence.*;
|
||||
import java.io.Serializable;
|
||||
import java.sql.Timestamp;
|
||||
import java.util.Arrays;
|
||||
import java.util.Date;
|
||||
|
||||
//@Entity
|
||||
@Table(name = "tb_email")
|
||||
@@ -62,7 +65,7 @@ public class EmailEntity implements Serializable {
|
||||
this.subject = mail.getSubject();
|
||||
this.content = mail.getContent();
|
||||
this.template = mail.getTemplate();
|
||||
this.sendTime = new Timestamp(new Date().getTime());
|
||||
this.sendTime = new Timestamp(System.currentTimeMillis());
|
||||
}
|
||||
|
||||
public Long getId() {
|
||||
|
||||
@@ -5,11 +5,11 @@ package ${package}.api;
|
||||
|
||||
import org.shoulder.core.dto.response.BaseResult;
|
||||
|
||||
import javax.ws.rs.GET;
|
||||
import javax.ws.rs.Path;
|
||||
import javax.ws.rs.PathParam;
|
||||
import javax.ws.rs.Produces;
|
||||
import javax.ws.rs.core.MediaType;
|
||||
import jakarta.ws.rs.GET;
|
||||
import jakarta.ws.rs.Path;
|
||||
import jakarta.ws.rs.PathParam;
|
||||
import jakarta.ws.rs.Produces;
|
||||
import jakarta.ws.rs.core.MediaType;
|
||||
|
||||
/**
|
||||
* demo restful api
|
||||
|
||||
@@ -5,11 +5,11 @@ package ${package}.api;
|
||||
|
||||
import org.shoulder.core.dto.response.BaseResult;
|
||||
|
||||
import javax.ws.rs.GET;
|
||||
import javax.ws.rs.Path;
|
||||
import javax.ws.rs.PathParam;
|
||||
import javax.ws.rs.Produces;
|
||||
import javax.ws.rs.core.MediaType;
|
||||
import jakarta.ws.rs.GET;
|
||||
import jakarta.ws.rs.Path;
|
||||
import jakarta.ws.rs.PathParam;
|
||||
import jakarta.ws.rs.Produces;
|
||||
import jakarta.ws.rs.core.MediaType;
|
||||
|
||||
/**
|
||||
* demo 服务的接口
|
||||
|
||||
@@ -3,9 +3,8 @@
|
||||
#set( $symbol_escape = '\' )
|
||||
package ${package}.start.controller;
|
||||
|
||||
import lombok.extern.shoulder.SLog;
|
||||
import org.shoulder.core.log.AppLoggers;
|
||||
import org.shoulder.core.log.Logger;
|
||||
import org.shoulder.core.log.LoggerFactory;
|
||||
import org.shoulder.web.annotation.SkipResponseWrap;
|
||||
import org.springframework.web.bind.annotation.GetMapping;
|
||||
import org.springframework.web.bind.annotation.RequestMapping;
|
||||
@@ -23,9 +22,9 @@ import org.springframework.web.bind.annotation.RestController;
|
||||
public class DemoController {
|
||||
|
||||
/**
|
||||
* 定义 shoulder 的 logger, 使用注解 {@link SLog} 时则可不写这行代码
|
||||
* 接口 logger
|
||||
*/
|
||||
private static final Logger log = LoggerFactory.getLogger(DemoController.class);
|
||||
private static final Logger log = AppLoggers.APP_SERVICE;
|
||||
|
||||
|
||||
/**
|
||||
|
||||
@@ -2,11 +2,11 @@ package cn.itlym.shoulder.platform.system.api;
|
||||
|
||||
import org.shoulder.core.dto.response.BaseResult;
|
||||
|
||||
import javax.ws.rs.GET;
|
||||
import javax.ws.rs.Path;
|
||||
import javax.ws.rs.PathParam;
|
||||
import javax.ws.rs.Produces;
|
||||
import javax.ws.rs.core.MediaType;
|
||||
import jakarta.ws.rs.GET;
|
||||
import jakarta.ws.rs.Path;
|
||||
import jakarta.ws.rs.PathParam;
|
||||
import jakarta.ws.rs.Produces;
|
||||
import jakarta.ws.rs.core.MediaType;
|
||||
|
||||
/**
|
||||
* 系统配置
|
||||
|
||||
@@ -2,11 +2,11 @@ package cn.itlym.shoulder.platform.system.api;
|
||||
|
||||
import org.shoulder.core.dto.response.BaseResult;
|
||||
|
||||
import javax.ws.rs.GET;
|
||||
import javax.ws.rs.Path;
|
||||
import javax.ws.rs.PathParam;
|
||||
import javax.ws.rs.Produces;
|
||||
import javax.ws.rs.core.MediaType;
|
||||
import jakarta.ws.rs.GET;
|
||||
import jakarta.ws.rs.Path;
|
||||
import jakarta.ws.rs.PathParam;
|
||||
import jakarta.ws.rs.Produces;
|
||||
import jakarta.ws.rs.core.MediaType;
|
||||
|
||||
/**
|
||||
* 数据字典
|
||||
|
||||
@@ -23,8 +23,8 @@
|
||||
<scope>compile</scope>
|
||||
</dependency>
|
||||
<dependency>
|
||||
<groupId>org.mapstruct</groupId>
|
||||
<artifactId>mapstruct</artifactId>
|
||||
<groupId>cn.itlym</groupId>
|
||||
<artifactId>shoulder-starter-beanmap</artifactId>
|
||||
</dependency>
|
||||
<dependency>
|
||||
<groupId>com.baomidou</groupId>
|
||||
|
||||
@@ -2,11 +2,11 @@ package cn.itlym.platform.uaa.api;
|
||||
|
||||
import org.shoulder.core.dto.response.BaseResult;
|
||||
|
||||
import javax.ws.rs.GET;
|
||||
import javax.ws.rs.Path;
|
||||
import javax.ws.rs.PathParam;
|
||||
import javax.ws.rs.Produces;
|
||||
import javax.ws.rs.core.MediaType;
|
||||
import jakarta.ws.rs.GET;
|
||||
import jakarta.ws.rs.Path;
|
||||
import jakarta.ws.rs.PathParam;
|
||||
import jakarta.ws.rs.Produces;
|
||||
import jakarta.ws.rs.core.MediaType;
|
||||
|
||||
/**
|
||||
* demo restful api
|
||||
|
||||
@@ -18,6 +18,11 @@
|
||||
<artifactId>shoulder-platform-starter-micro</artifactId>
|
||||
</dependency>
|
||||
|
||||
<dependency>
|
||||
<groupId>cn.itlym</groupId>
|
||||
<artifactId>shoulder-starter-beanmap</artifactId>
|
||||
</dependency>
|
||||
|
||||
<!-- 持久层接口 -->
|
||||
<dependency>
|
||||
<groupId>cn.itlym.platform</groupId>
|
||||
|
||||
@@ -1,8 +1,7 @@
|
||||
package cn.itlym.platform.uaa.start.controller;
|
||||
|
||||
import lombok.extern.shoulder.SLog;
|
||||
import org.shoulder.core.log.AppLoggers;
|
||||
import org.shoulder.core.log.Logger;
|
||||
import org.shoulder.core.log.LoggerFactory;
|
||||
import org.shoulder.web.annotation.SkipResponseWrap;
|
||||
import org.springframework.web.bind.annotation.GetMapping;
|
||||
import org.springframework.web.bind.annotation.RequestMapping;
|
||||
@@ -13,16 +12,12 @@ import org.springframework.web.bind.annotation.RestController;
|
||||
*
|
||||
* @author shoulder
|
||||
*/
|
||||
//@SLog // 与 @Slf4j 类似,在希望打日志的类上添加 @SLog 注解,编译时将生成类似下面定义 logger 的代码
|
||||
@SkipResponseWrap // 该类所有方法的返回值将不被包装
|
||||
@RestController
|
||||
@RequestMapping("demo")
|
||||
public class DemoController {
|
||||
|
||||
/**
|
||||
* 定义 shoulder 的 logger, 使用注解 {@link SLog} 时则可不写这行代码
|
||||
*/
|
||||
private static final Logger log = LoggerFactory.getLogger(DemoController.class);
|
||||
private static final Logger log = AppLoggers.APP_SERVICE;
|
||||
|
||||
|
||||
/**
|
||||
|
||||
Reference in New Issue
Block a user