Springboot packaged deployment project

Time:2021-12-31

The jar project is packaged here, that is, there is no webapp directory. It is packaged and published to the server through the Maven packaging plug-in

Not much nonsense, not much direct nonsense, not much direct nonsense, not much direct nonsense, not much direct nonsense, not much direct nonsense, not much direct nonsense, not much direct nonsense, not much direct nonsense, not much direct nonsense, not much direct nonsense, not much direct nonsense, not much less direct nonsense, not much direct nonsense, not much direct nonsense, not much direct nonsense No more nonsense, no more direct nonsense, no more direct nonsense, no more direct nonsense

1.pom. XML import plug-in

org.springframework.boot
                spring-boot-maven-plugin
                
                    
                    true
                
                
                    
                        
                            
                            repackage

2. Quick packaging in idea

3. Java – jar run project (under the jar package directory)

Directly use CMD to run the project through Java – jar in the current file path

4. Visit the project

http://localhost:8090/login