maven中dependency的属性(依赖)配置

  1. 在pom.xml中添加下面代码来下载servlet-api:
  
    javax.servlet  
    servlet-api  
    2.5  
    provided  
  
  1. pom.xml中添加支持web的模块:

        org.springframework.boot
        spring-boot-starter-web
 
  1. pom.xml中添加支持springBoot热启动

    
        org.springframework.boot
        spring-boot-devtools
        true
   


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

  1. pom.xml中添加mysql
     
        mysql
        mysql-connector-java
    
  1. pom.xml中添加spring data jpa
    
        org.springframework.boot
        spring-boot-starter-data-jpa
    
  1. pom.xml中添加geronimo-jta_1.1_spec

		    org.apache.geronimo.specs
		    geronimo-jta_1.1_spec
		    1.1.1

你可能感兴趣的:(maven)