Commit df849458220d11280ec5226a57b0042f1ad403ce
1 parent
0a28faf7
Exists in
master
no message
Showing
1 changed file
with
0 additions
and
20 deletions
Show diff stats
springboot/src/main/java/com/sincre/springboot/SpringbootApplication.java
| @@ -17,26 +17,6 @@ public class SpringbootApplication extends SpringBootServletInitializer { | @@ -17,26 +17,6 @@ public class SpringbootApplication extends SpringBootServletInitializer { | ||
| 17 | public static void main(String[] args) { | 17 | public static void main(String[] args) { |
| 18 | 18 | ||
| 19 | SpringApplication.run(SpringbootApplication.class, args); | 19 | SpringApplication.run(SpringbootApplication.class, args); |
| 20 | - System.out.println("classpath:" + new SpringbootApplication().getClass().getResource("")); | ||
| 21 | - | ||
| 22 | -// new SpringbootApplication().initFrame(); | ||
| 23 | - } | ||
| 24 | - | ||
| 25 | - @Override | ||
| 26 | - protected SpringApplicationBuilder configure(SpringApplicationBuilder builder) { | ||
| 27 | - return builder.sources(SpringbootApplication.class); | ||
| 28 | - } | ||
| 29 | - | ||
| 30 | - private void initFrame() { | ||
| 31 | - JFrame jFrame = new JFrame(); | ||
| 32 | - //设置窗口是否可视 | ||
| 33 | - jFrame.setVisible(true); | ||
| 34 | -//设置窗口的大小是否可以调节 | ||
| 35 | - jFrame.setResizable(false); | ||
| 36 | -//设置窗口大小和x,y位置 | ||
| 37 | - jFrame.setBounds(100, 100, 600, 800); | ||
| 38 | -//设置窗口退出则程序退出 | ||
| 39 | - jFrame.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE); | ||
| 40 | } | 20 | } |
| 41 | 21 | ||
| 42 | } | 22 | } |