Welcome to OStack Knowledge Sharing Community for programmer and developer-Open, Learning and Share
Welcome To Ask or Share your Answers For Others

Categories

0 votes
1.6k views
in Technique[技术] by (71.8m points)

springboot 初级问题

别人的机器正常运行。

  1. 两个 service 所有set方法标红;
  2. 启动后,关闭后,Run栏状态如图;
package com.view.demo.bean;
import lombok.Data;
@Data
public class UserTokenBean {
    private String siteId;
 // private String siteContentUrl;
 private String userId;
 private String token;
}
... ...
import com.view.demo.bean.ProjectBean;
import com.view.demo.bean.UserTokenBean;
... ...

ProjectBean projectBean = new ProjectBean();
projectBean.setProjectId(sonObject.get('id').toString());
projectBean.setProjectName(sonObject.get('name').toString());
projectBean.setUpdatedAt(sonObject.get('updatedAt').toString());
projectBean.setDescription(sonObject.get('description').toString());
projectBean.setSiteId(siteId);

image

image

查了大半天了,问题出在哪里 ?

已解决!
第一个问题,安装插件;
第二问题,设置UTF-8,乱码消失,状态也正常了。
https://blog.csdn.net/liu8650...


与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
Welcome To Ask or Share your Answers For Others

1 Answer

0 votes
by (71.8m points)

安装 lombok 插件


与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
Welcome to OStack Knowledge Sharing Community for programmer and developer-Open, Learning and Share
Click Here to Ask a Question

...