Skip to content

kentyeh/springJdbiArch

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

59 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

springJdbiArch

Maven Central

Sample archetype form Spring,Spring Security and JDBI3.

Requirement

Require JDK 17+ AND Maven preinstalled.

Usage

generate sample project:

mvn archetype:generate -DarchetypeGroupId=com.github.kentyeh \
-DarchetypeArtifactId=springJdbiArch -DarchetypeVersion=4.0.3

After generation

  • Test Program

    mvn test 
    
  • Integration test

    mvn integration-test 
    
  • Test and generate document

    mvn verify site
    

    Final site report generated at target/site/index.html.

  • running program

    mvn jetty:run
    

then open http://localhost:8080/{project.artifactId}/ to see the pages. In the meantime, the H2 database is available for connecting by jdbc:h2:tcp://localhost/{project.artifactId} with sa/{project.artifactI}

MISC

  • Analysis your code problems after compiled.(by SpotBugs.)

    mvn compile spotbugs:check spotbugs:gui
    
  • Deploy Web Application

    mvn package

    Find war file inner ${project.basedir}/target folder, before deployment, It is required to build a jndi/${project.artifactId}database resource in your web container.

About

Spring Jdbi archetype

Resources

Stars

Watchers

Forks

Packages

 
 
 

Contributors