SpringBoot项目配置

1.pom配置build插件


        
            
                org.apache.maven.plugins
                maven-compiler-plugin
                3.5
                
                    1.8
                    1.8
                    UTF-8
                
            
            
                org.springframework.boot
                spring-boot-maven-plugin
                2.0.8.RELEASE
                
                    
                        
                            repackage
                        
                    
                
            
        
    

2.application配置内容

server:
  port: 8093
spring:
  application:
    name: project
  aop:
    proxy-target-class: true
  profiles:
    active: ${spring.profiles.active}

你可能感兴趣的:(SpringBoot项目配置)