RELATEED CONSULTING
相关咨询
选择下列产品马上在线沟通
服务时间:8:30-17:00
你可能遇到了下面的问题
关闭右侧工具栏

新闻中心

这里有您想知道的互联网营销解决方案
使用SpringBoot快速构建基于SQLite数据源的应用-创新互联

为了提供一个单包易部署的服务器应用,考虑使用Spring Boot,因为其集成了Apache Tomcat,易于运行,免去绝大部分了服务器配置的步骤。

专注于为中小企业提供成都网站设计、成都做网站服务,电脑端+手机端+微信端的三站合一,更高效的管理,为中小企业定安免费做网站提供优质的服务。我们立足成都,凝聚了一批互联网行业人才,有力地推动了上千企业的稳健成长,帮助中小企业通过网站建设实现规模扩充和转变。

项目初始化

首先从mvn archetype:generate中选择 com.github.mkspcd:simple-webapp(或其他webapp模版) 模版生成项目结构。

更多关于maven请移步Maven - Users Centre

在pom.xml中添加parent来获取Spring Boot所需的最小依赖。


  4.0.0
  com.github.hwding.example
  example
  jar
  0.0.1
  an example
  https://github.com/hwding
  
  
    
      http://repo.spring.io/milestone/
      repo-spring
    
  
  
    org.springframework.boot
    spring-boot-starter-parent
    1.5.6.RELEASE
  
  
    example
    
      
        org.springframework.boot
        spring-boot-maven-plugin
      
      
      
        org.apache.maven.plugins
        maven-compiler-plugin
        
          1.8
          1.8
        
      
    
  
  
    
      org.springframework.boot
      spring-boot-starter-web
    
    
      org.springframework.boot
      spring-boot-starter-data-jpa
    
    
    
      com.enigmabridge
      hibernate4-sqlite-dialect
      0.1.2
    
    
    
      org.apache.commons
      commons-dbcp2
      2.1.1
    
    
      org.eclipse.persistence
      javax.persistence
      2.2.0-RC1
    
    
    
      org.xerial
      sqlite-jdbc
      3.20.0
    
  

文章标题:使用SpringBoot快速构建基于SQLite数据源的应用-创新互联
文章URL:http://scyingshan.cn/article/dgosio.html