Welcome to OGeek Q&A Community for programmer and developer-Open, Learning and Share
Welcome To Ask or Share your Answers For Others

Categories

0 votes
1.7k 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 Reply

0 votes
by (71.8m points)

安装 lombok 插件


与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
OGeek|极客中国-欢迎来到极客的世界,一个免费开放的程序员编程交流平台!开放,进步,分享!让技术改变生活,让极客改变未来! Welcome to OGeek Q&A Community for programmer and developer-Open, Learning and Share
Click Here to Ask a Question

...