Using IntelliJ IDEA, I wonder if this feature exists.
Let's say you are writing a piece of code in a Java Rest Controller. You realize that you haven't yet created a certain Bean that has to be returned in your current method.
But you just go ahead and write the code as if it existed. Just like:
@GetMapping("/my-bean")
public MyBean getMyBean(){
return new MyBean("My Message");
}
The class MyBean doesn't exist yet.
In Eclipse, you just go Ctrl+1 --> Create Class MyBean. It automatically launches a little wizard to create the class saving a little bit of time.
Is this possible in IntelliJ IDEA?
Alt进入或击中红色灯泡
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.