Thanks to visit codestin.com
Credit goes to github.com

Skip to content

fluentcodes/GitSamples-Spring

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

17 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Topic Branch - Java Springboot Web Parent

Will check for RestWebController

A spring boot application using spring-boot-starter-parent instead of direct dependencies as in java-springboot-web-direct

<parent>
	<groupId>org.springframework.boot</groupId>
	<artifactId>spring-boot-starter-parent</artifactId>
	<version>2.6.4</version>
	<relativePath/>
</parent>

Summary

There are no relevant differences in size or starting speed between the two options.

Endpoints

This is rather bare bone topic branch.

Controller

  • RestController
    • /welcome/NAME
    • /welcome/get/NAME
    • /welcome (post)
    • /welcome/post

Static

Start

It starts with Startr within overall half a minute, but this is dependent of the environment:

2022-03-17 04:32:46.916  INFO 98276 --- [           main] org.apache.catalina.core.StandardEngine  : Starting Servlet engine: [Apache Tomcat/9.0.58]
2022-03-17 04:32:46.954  INFO 98276 --- [           main] o.a.c.c.C.[Tomcat].[localhost].[/]       : Initializing Spring embedded WebApplicationContext
2022-03-17 04:32:46.954  INFO 98276 --- [           main] w.s.c.ServletWebServerApplicationContext : Root WebApplicationContext: initialization completed in 539 ms
Init Something
2022-03-17 04:32:47.108  INFO 98276 --- [           main] o.s.b.a.w.s.WelcomePageHandlerMapping    : Adding welcome page: class path resource [static/index.html]
2022-03-17 04:32:47.183  INFO 98276 --- [           main] o.s.b.w.embedded.tomcat.TomcatWebServer  : Tomcat started on port(s): 8080 (http) with context path ''
2022-03-17 04:32:47.191  INFO 98276 --- [           main] sources.Start                            : Started Start in 21.148 seconds (JVM running for 21.404)

Size

The size of java-springboot-web-parent-0.0.1.jar in target

mvn clean install

is about 17 MB.

Dependencies

When executing

mvn dependency:tree

the following is shown:

org.fluentcodes.sandbox:java-springboot-web-parent:jar:0.0.1
+- org.springframework.boot:spring-boot-starter-web:jar:2.6.4:compile
|  +- org.springframework.boot:spring-boot-starter:jar:2.6.4:compile
|  |  +- org.springframework.boot:spring-boot-starter-logging:jar:2.6.4:compile
|  |  |  +- ch.qos.logback:logback-classic:jar:1.2.10:compile
|  |  |  |  \- ch.qos.logback:logback-core:jar:1.2.10:compile
|  |  |  +- org.apache.logging.log4j:log4j-to-slf4j:jar:2.17.1:compile
|  |  |  |  \- org.apache.logging.log4j:log4j-api:jar:2.17.1:compile
|  |  |  \- org.slf4j:jul-to-slf4j:jar:1.7.36:compile
|  |  +- jakarta.annotation:jakarta.annotation-api:jar:1.3.5:compile
|  |  \- org.yaml:snakeyaml:jar:1.29:compile
|  +- org.springframework.boot:spring-boot-starter-json:jar:2.6.4:compile
|  |  +- com.fasterxml.jackson.core:jackson-databind:jar:2.13.1:compile
|  |  |  +- com.fasterxml.jackson.core:jackson-annotations:jar:2.13.1:compile
|  |  |  \- com.fasterxml.jackson.core:jackson-core:jar:2.13.1:compile
|  |  +- com.fasterxml.jackson.datatype:jackson-datatype-jdk8:jar:2.13.1:compile
|  |  +- com.fasterxml.jackson.datatype:jackson-datatype-jsr310:jar:2.13.1:compile
|  |  \- com.fasterxml.jackson.module:jackson-module-parameter-names:jar:2.13.1:compile
|  +- org.springframework.boot:spring-boot-starter-tomcat:jar:2.6.4:compile
|  |  +- org.apache.tomcat.embed:tomcat-embed-core:jar:9.0.58:compile
|  |  +- org.apache.tomcat.embed:tomcat-embed-el:jar:9.0.58:compile
|  |  \- org.apache.tomcat.embed:tomcat-embed-websocket:jar:9.0.58:compile
|  +- org.springframework:spring-web:jar:5.3.16:compile
|  |  \- org.springframework:spring-beans:jar:5.3.16:compile
|  \- org.springframework:spring-webmvc:jar:5.3.16:compile
|     +- org.springframework:spring-aop:jar:5.3.16:compile
|     +- org.springframework:spring-context:jar:5.3.16:compile
|     \- org.springframework:spring-expression:jar:5.3.16:compile
+- org.springframework.boot:spring-boot-autoconfigure:jar:2.6.4:compile
|  \- org.springframework.boot:spring-boot:jar:2.6.4:compile
\- org.springframework.boot:spring-boot-starter-test:jar:2.6.4:test
   +- org.springframework.boot:spring-boot-test:jar:2.6.4:test
   +- org.springframework.boot:spring-boot-test-autoconfigure:jar:2.6.4:test
   +- com.jayway.jsonpath:json-path:jar:2.6.0:test
   |  +- net.minidev:json-smart:jar:2.4.8:test
   |  |  \- net.minidev:accessors-smart:jar:2.4.8:test
   |  |     \- org.ow2.asm:asm:jar:9.1:test
   |  \- org.slf4j:slf4j-api:jar:1.7.36:compile
   +- jakarta.xml.bind:jakarta.xml.bind-api:jar:2.3.3:test
   |  \- jakarta.activation:jakarta.activation-api:jar:1.2.2:test
   +- org.assertj:assertj-core:jar:3.21.0:test
   +- org.hamcrest:hamcrest:jar:2.2:test
   +- org.junit.jupiter:junit-jupiter:jar:5.8.2:test
   |  +- org.junit.jupiter:junit-jupiter-api:jar:5.8.2:test
   |  |  +- org.opentest4j:opentest4j:jar:1.2.0:test
   |  |  +- org.junit.platform:junit-platform-commons:jar:1.8.2:test
   |  |  \- org.apiguardian:apiguardian-api:jar:1.1.2:test
   |  +- org.junit.jupiter:junit-jupiter-params:jar:5.8.2:test
   |  \- org.junit.jupiter:junit-jupiter-engine:jar:5.8.2:test
   |     \- org.junit.platform:junit-platform-engine:jar:1.8.2:test
   +- org.mockito:mockito-core:jar:4.0.0:test
   |  +- net.bytebuddy:byte-buddy:jar:1.11.22:test
   |  +- net.bytebuddy:byte-buddy-agent:jar:1.11.22:test
   |  \- org.objenesis:objenesis:jar:3.2:test
   +- org.mockito:mockito-junit-jupiter:jar:4.0.0:test
   +- org.skyscreamer:jsonassert:jar:1.5.0:test
   |  \- com.vaadin.external.google:android-json:jar:0.0.20131108.vaadin1:test
   +- org.springframework:spring-core:jar:5.3.16:compile
   |  \- org.springframework:spring-jcl:jar:5.3.16:compile
   +- org.springframework:spring-test:jar:5.3.16:test
   \- org.xmlunit:xmlunit-core:jar:2.8.4:test

Related Topic Branches

Links

About

GitSamples with Topic Branches for Spring.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages