File tree Expand file tree Collapse file tree 1 file changed +8
-0
lines changed 
spring-boot-docs/src/main/asciidoc Expand file tree Collapse file tree 1 file changed +8
-0
lines changed Original file line number Diff line number Diff line change @@ -284,6 +284,14 @@ about the state of your `git` source code repository when the project was built.
284284`git.properties` file is contained in your jar the `git.branch` and `git.commit`
285285properties will be loaded.
286286
287+ If your app is packaged as a WAR file, you will have to specify the location of the
288+ `git.properties` file, as loading resources in this context requires a `URL` to the file:
289+ 
290+ [source,properties,indent=0]
291+ ---- 
292+ 	git.properties: /WEB-INF/classes/git.properties 
293+ ---- 
294+ 
287295For Maven users the `spring-boot-starter-parent` POM includes a pre-configured plugin to
288296generate a `git.properties` file. Simply add the following declaration to your POM:
289297
    
 
   
 
     
   
   
          
     
  
    
     
 
    
      
     
 
     
    You can’t perform that action at this time.
  
 
    
  
     
    
      
        
     
 
       
      
     
   
 
    
    
  
 
  
 
     
    
0 commit comments