cristianprofile / spring-boot-mvc-complete-example Goto Github PK
View Code? Open in Web Editor NEWspring boot mvc complete example integration and unit test with @config classes
spring boot mvc complete example integration and unit test with @config classes
Use optional params in spring mvc controllers
Automatic Restart/ LiveReload project
add additional assert assertion junit tests.
assertThat(list).isNotEmpty().hasSize(1);
assertThat(list).containsOnly(object);
assertThat(object.getSurname()).as("check %s's surname", object.getName()).isEqualTo("2222");
assertThat(object).isNotNull();
Aditional assert examples in:
(https://github.com/joel-costigliola/assertj-examples/blob/master/assertions-examples/src/test/java/org/assertj/examples/IterableAssertionsExamples.java for more assertj examples)
Use ELK logs with elasticsearch central index.
Spring IO Platform 2.0.2.RELEASE is now available from both repo.spring.io and Maven Central.
Upgrade dependency in parent pom project.
Test and understand new Spring boot slices test features:
Update project with new Spring Platform version: Brussels-SR2 (Spring boot 1.5.3.RELEASE)
Spring 4.3 automatic autowired improvements
https://spring.io/blog/2016/03/04/core-container-refinements-in-spring-framework-4-3
Spring boot actuator monitoring with HttpBeat
Use new Spring platform release
https://spring.io/blog/2016/09/22/spring-io-platform-athens-release
Update dependency management grade definitions:
Additional info:
https://spring.io/blog/2017/06/05/dependency-management-plugin-1-0-3-release
WebJars are client-side web libraries (e.g. jQuery & Bootstrap) packaged into JAR (Java Archive) files.
Explicitly and easily manage the client-side dependencies in JVM-based web applications
Use JVM-based build tools (e.g. Maven, Gradle, sbt, ...) to download your client-side dependencies
Know which client-side dependencies you are using
Transitive dependencies are automatically resolved and optionally loaded via RequireJS
Deployed on Maven Central
https://spring.io/blog/2014/01/03/utilizing-webjars-in-spring-boot
http://info.michael-simons.eu/2014/04/15/spring-boot-as-a-backend-for-angularjs/
Add spring-dev-tools automatic restart Intellij when build action is thrown
http://docs.spring.io/spring-boot/docs/current/reference/html/using-boot-devtools.html
Test packagecloud with travis (the same as Nexus in cloud).
Test maven deploy of realease artefacts with travis and packagecloud:
https://blog.travis-ci.com/2017-03-30-deploy-maven-travis-ci-packagecloud/
Review git commit plugin config in every modules
Testing improvements in Spring Boot 1.4 (Integration test in rest layer).
https://spring.io/blog/2016/04/15/testing-improvements-in-spring-boot-1-4
Add correlation id request-response logs with mdc.
https://veerasundar.com/blog/2009/11/log4j-mdc-mapped-diagnostic-context-example-code/
Test Spring Boot Error handling best practices
https://www.toptal.com/java/spring-boot-rest-api-error-handling
Add Audit information in Base entity model
Insert Spring security in web app (rest and web) with new infrastructure added in Spring Security 4.
See: http://spring.io/blog/2015/03/26/spring-security-4-0-0-released
Note:
- Update Spring security version in parent pom using spring.io.version Spring platform-bom.
- Test rest services. create test spring security mocking feature
- Test web module create test spring security mocking feature
Use jasypt to be able to encrypt/decript Spring boot properties
Delete Spring Boot Banner in main and test main method folder.
Update Bom Spring IO platform version
https://spring.io/blog/2016/03/02/spring-io-platform-2-0-3-release
Test spring mvc json views detailed/summary (getAll versus get)
https://spring.io/blog/2014/12/02/latest-jackson-integration-improvements-in-spring
Configure datasource access with jndi to map with production database.
Configure entity manager factory
Use Spring's scopes to create custom beans in production enviroment
If we use context path to server config (pizza) an error will generate that actuator won't work (404 not found).
Add Spring rest docs feature to be able to generate asciidoc api documentation from rest layer tests.
verify test and main context
Test Jpa 2.1 entity graph to make less painful eager/lazy information access.
http://www.thoughts-on-java.org/jpa-21-entity-graph-part-1-named-entity/
Add new features in Spring data jpa 1.1 release:
http://docs.spring.io/spring-data/jpa/docs/1.11.1.RELEASE/reference/html/#new-features.1-11-0
*java.lang.RuntimeException: java.net.BindException: *
Address already in use is thrown when app runs multi-branch plugin in Jenkins 2.0 beta.
@RunWith(SpringRunner.class)
@SpringBootTest
@RunWith(SpringRunner.class)
@WebMvcTest(UserVehicleController.class)
@RunWith(SpringRunner.class)
@DataJpaTest
@RunWith(SpringRunner.class)
@WebMvcTest(UserController.class)
@AutoConfigureRestDocs("target/generated-snippets")
http://docs.spring.io/spring-boot/docs/current-SNAPSHOT/reference/html/boot-features-testing.html
Create test mock object with podam library
http://home.btconnect.com/jemosAgile/projects/podam/
Test data mapper frameworks performance
http://blog.sokolenko.me/2013/05/dozer-vs-orika-vs-manual.html
MapStruct http://mapstruct.org/
Automatic Deploy app to Amazon Webservices.
Configure Maven to be able to get automatic deploy to amazon web services.
This issue lists Renovate updates and detected dependencies. Read the Dependency Dashboard docs to learn more.
These updates are currently rate-limited. Click on a checkbox below to force their creation now.
org.powermock:powermock-api-mockito
, org.powermock:powermock-module-junit4
)These updates have been manually edited so Renovate will no longer make changes. To discard all commits and start over, click on a checkbox.
Warning
Renovate failed to look up the following dependencies: Failed to look up maven package com.mylab.cromero.core:mylab-core
, Failed to look up maven package com.mylab.cromero.core:mylab-core-repository
, Failed to look up maven package com.mylab.cromero.core:mylab-core-service-api
, Failed to look up maven package com.mylab.cromero:cromero-parent-pom
, Failed to look up maven package com.mylab.cromero.core:mylab-core-service-impl
, Failed to look up maven package com.mylab.cromero.core:mylab-core-service-security-impl
.
Files affected: mylab-core/mylab-core-repository/pom.xml
, mylab-core/mylab-core-service-api/pom.xml
, mylab-core/mylab-core-service-impl/pom.xml
, mylab-core/mylab-core-service-security-impl/pom.xml
, mylab-core/pom.xml
, spring-boot-data-rest/pom.xml
, spring-boot-mvc-rest/pom.xml
, spring-boot-mvc-web/pom.xml
These updates have all been created already. Click a checkbox below to force a retry/rebase of any.
.github/workflows/ci.yml
actions/checkout v2
actions/setup-java v2
actions/cache v2
actions/checkout v2
actions/setup-java v2
actions/cache v2
gradle.properties
settings.gradle
build.gradle
io.spring.gradle:dependency-management-plugin 0.6.0.RELEASE
org.springframework.boot:spring-boot-gradle-plugin 1.4.1.RELEASE
ca.cutterslade.gradle:gradle-dependency-analyze 1.0.3
com.gorylenko.gradle-git-properties 1.4.17
io.spring.platform:platform-bom Athens-SR3
org.powermock:powermock-api-mockito 1.6.5
org.powermock:powermock-module-junit4 1.6.5
net.logstash.logback:logstash-logback-encoder 4.7
ch.qos.logback:logback-classic 1.1.6
ch.qos.logback:logback-core 1.1.6
net.logstash.logback:logstash-logback-encoder 4.7
ch.qos.logback:logback-classic 1.1.6
ch.qos.logback:logback-core 1.1.6
javax.servlet:jstl 1.2
net.logstash.logback:logstash-logback-encoder 4.7
ch.qos.logback:logback-classic 1.1.6
ch.qos.logback:logback-core 1.1.6
mylab-core/mylab-core-repository/pom.xml
com.mylab.cromero.core:mylab-core 0.0.2-SNAPSHOT
javax.el:el-api 2.2
mylab-core/mylab-core-service-api/pom.xml
com.mylab.cromero.core:mylab-core 0.0.2-SNAPSHOT
mylab-core/mylab-core-service-impl/pom.xml
com.mylab.cromero.core:mylab-core 0.0.2-SNAPSHOT
org.mockftpserver:MockFtpServer 2.6
org.powermock:powermock-api-mockito 1.6.5
org.powermock:powermock-module-junit4 1.6.5
com.mylab.cromero.core:mylab-core-repository 0.0.2-SNAPSHOT
com.mylab.cromero.core:mylab-core-service-api 0.0.2-SNAPSHOT
org.powermock:powermock-api-mockito 1.6.5
org.eluder.coveralls:coveralls-maven-plugin 3.1.0
mylab-core/mylab-core-service-security-impl/pom.xml
com.mylab.cromero.core:mylab-core 0.0.2-SNAPSHOT
com.mylab.cromero.core:mylab-core-repository 0.0.2-SNAPSHOT
com.mylab.cromero.core:mylab-core-service-api 0.0.2-SNAPSHOT
mylab-core/pom.xml
com.mylab.cromero:cromero-parent-pom 0.0.2-SNAPSHOT
mylab-parent-pom/pom.xml
io.spring.platform:platform-bom Athens-SR3
cglib:cglib-nodep 3.1
com.googlecode.openpojo:openpojo 0.5.0
javax.xml.bind:jaxb-api 2.2.11
javax.mail:mail 1.4
org.powermock:powermock-module-junit4 1.6.2
org.powermock:powermock-api-mockito 1.6.2
org.apache.maven.plugins:maven-clean-plugin 2.5
org.apache.maven.plugins:maven-install-plugin 2.5.1
org.apache.maven.plugins:maven-jar-plugin 2.4
org.apache.maven.plugins:maven-site-plugin 3.3
org.apache.maven.plugins:maven-compiler-plugin 3.1
org.apache.maven.plugins:maven-resources-plugin 2.6
org.apache.maven.plugins:maven-surefire-plugin 2.16
org.apache.maven.plugins:maven-failsafe-plugin 2.16
org.apache.maven.plugins:maven-assembly-plugin 2.4
org.apache.maven.plugins:maven-deploy-plugin 2.8.1
org.apache.maven.plugins:maven-antrun-plugin 1.7
org.apache.maven.plugins:maven-dependency-plugin 2.8
org.apache.maven.plugins:maven-release-plugin 2.4.2
org.apache.maven.plugins:maven-war-plugin 2.4
org.apache.maven.plugins:maven-eclipse-plugin 2.9
org.apache.tomcat.maven:tomcat7-maven-plugin 2.1
org.codehaus.mojo:sonar-maven-plugin 2.0
org.apache.maven.plugins:maven-project-info-reports-plugin 2.6
org.apache.maven.plugins:maven-javadoc-plugin 2.9
org.apache.maven.plugins:maven-jxr-plugin 2.3
org.codehaus.mojo:findbugs-maven-plugin 2.5.2
org.codehaus.mojo:versions-maven-plugin 2.1
org.apache.maven.plugins:maven-checkstyle-plugin 2.10
org.codehaus.mojo:findbugs-maven-plugin 2.5.3
net.wasdev.wlp.maven.plugins:liberty-maven-plugin 1.0
org.jacoco:jacoco-maven-plugin 0.7.2.201409121644
org.codehaus.mojo:cobertura-maven-plugin 2.7
spring-boot-data-rest/pom.xml
com.mylab.cromero:cromero-parent-pom 0.0.2-SNAPSHOT
com.mylab.cromero.core:mylab-core-repository 0.0.2-SNAPSHOT
com.mylab.cromero.core:mylab-core-service-api 0.0.2-SNAPSHOT
net.logstash.logback:logstash-logback-encoder 4.7
ch.qos.logback:logback-classic 1.1.6
ch.qos.logback:logback-core 1.1.6
spring-boot-mvc-rest/pom.xml
com.mylab.cromero:cromero-parent-pom 0.0.2-SNAPSHOT
com.mylab.cromero.core:mylab-core-service-impl 0.0.2-SNAPSHOT
net.logstash.logback:logstash-logback-encoder 4.7
ch.qos.logback:logback-classic 1.1.6
ch.qos.logback:logback-core 1.1.6
spring-boot-mvc-web/pom.xml
com.mylab.cromero:cromero-parent-pom 0.0.2-SNAPSHOT
com.mylab.cromero.core:mylab-core-service-impl 0.0.2-SNAPSHOT
com.mylab.cromero.core:mylab-core-service-security-impl 0.0.2-SNAPSHOT
javax.servlet:jstl 1.2
net.logstash.logback:logstash-logback-encoder 4.7
ch.qos.logback:logback-classic 1.1.6
ch.qos.logback:logback-core 1.1.6
management.info.git.mode=full can be used to display all the information available in git.properties. The default is simple and displays what we used to so far.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.