jinlin
2025-04-10 af67fb927c3f30fa70df834f0e97f0b4a91e6119
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
package com.example;
 
import com.example.client.Login;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.boot.ApplicationArguments;
import org.springframework.boot.ApplicationRunner;
import org.springframework.stereotype.Component;
 
import javax.swing.*;
 
@Component
public class StartupHandler extends JFrame implements ApplicationRunner {
    @Autowired
    private Login login;
 
    @Override
    public void run(ApplicationArguments args) throws Exception {
        login.Start();
    }
 
}