Git Product home page Git Product logo

springbootbatch's Introduction

springBootBatch

Spring Boot โ€“ Batch tutorial using MySQL, JPA and annotations

In this example I show how to use Spring Boot to create a simple Spring Batch application.

You can find more details here: https://marco.dev/spring-boot-batch-tutorial-using-mysql-jpa-and-annotations The only requirement is to have a mysql database installed. You can find more information in the source code.

If you start a new project in an IDE, you can simply create a simple new maven project (without Spring wizards or similar).

springbootbatch's People

Contributors

marco76 avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar

springbootbatch's Issues

Demo doesn't work anymore

Error received via mail:

\\ / ___'_ __ _ _(_)_ __  __ _ \ \ \ \
( ( )\___ | '_ | '_| | '_ \/ _` | \ \ \ \
\\/  ___)| |_)| | | | | || (_| |  ) ) ) )
  '  |____| .__|_| |_|_| |_\__, | / / / /
=========|_|==============|___/=/_/_/_/
:: Spring Boot ::             (v0.5.0.M5)
 
2017-10-20 16:37:36.273  INFO 12984 --- [           main] ch.javaee.springBootBatch.Application    : Starting Application on Arif-Baig with PID 12984 (C:\Users\Shafiq\git\springBootBatch\target\classes started by Shafiq)
2017-10-20 16:37:36.295  INFO 12984 --- [           main] ationConfigEmbeddedWebApplicationContext : Refreshing org.springframework.boot.context.embedded.AnnotationConfigEmbeddedWebApplicationContext@59906517: startup date [Fri Oct 20 16:37:36 PKT 2017]; root of context hierarchy
Exception in thread "main" java.lang.NoClassDefFoundError: org/springframework/expression/ExpressionParser
       at org.springframework.context.support.AbstractApplicationContext.prepareBeanFactory(AbstractApplicationContext.java:556)
       at org.springframework.context.support.AbstractApplicationContext.refresh(AbstractApplicationContext.java:457)
       at org.springframework.boot.context.embedded.EmbeddedWebApplicationContext.refresh(EmbeddedWebApplicationContext.java:122)
       at org.springframework.boot.SpringApplication.refresh(SpringApplication.java:509)
       at org.springframework.boot.SpringApplication.run(SpringApplication.java:278)
       at org.springframework.boot.SpringApplication.run(SpringApplication.java:687)
       at org.springframework.boot.SpringApplication.run(SpringApplication.java:676)
       at ch.javaee.springBootBatch.Application.main(Application.java:9)
Caused by: java.lang.ClassNotFoundException: org.springframework.expression.ExpressionParser
       at java.net.URLClassLoader.findClass(Unknown Source)
       at java.lang.ClassLoader.loadClass(Unknown Source)
       at sun.misc.Launcher$AppClassLoader.loadClass(Unknown Source)
       at java.lang.ClassLoader.loadClass(Unknown Source)
       ... 8 more
2017-10-20 16:37:36.300  INFO 12984 --- [       Thread-1] ationConfigEmbeddedWebApplicationContext : Closing org.springframework.boot.context.embedded.AnnotationConfigEmbeddedWebApplicationContext@59906517: startup date [Fri Oct 20 16:37:36 PKT 2017]; root of context hierarchy
2017-10-20 16:37:36.304  WARN 12984 --- [       Thread-1] ationConfigEmbeddedWebApplicationContext : Exception thrown from ApplicationListener handling ContextClosedEvent
 
java.lang.IllegalStateException: ApplicationEventMulticaster not initialized - call 'refresh' before multicasting events via the context: org.springframework.boot.context.embedded.AnnotationConfigEmbeddedWebApplicationContext@59906517: startup date [Fri Oct 20 16:37:36 PKT 2017]; root of context hierarchy
       at org.springframework.context.support.AbstractApplicationContext.getApplicationEventMulticaster(AbstractApplicationContext.java:346)
       at org.springframework.context.support.AbstractApplicationContext.publishEvent(AbstractApplicationContext.java:333)
       at org.springframework.context.support.AbstractApplicationContext.doClose(AbstractApplicationContext.java:880)
       at org.springframework.boot.context.embedded.EmbeddedWebApplicationContext.doClose(EmbeddedWebApplicationContext.java:145)
       at org.springframework.context.support.AbstractApplicationContext$1.run(AbstractApplicationContext.java:809)
 
2017-10-20 16:37:36.305  WARN 12984 --- [       Thread-1] ationConfigEmbeddedWebApplicationContext : Exception thrown from LifecycleProcessor on context close
 
java.lang.IllegalStateException: LifecycleProcessor not initialized - call 'refresh' before invoking lifecycle methods via the context: org.springframework.boot.context.embedded.AnnotationConfigEmbeddedWebApplicationContext@59906517: startup date [Fri Oct 20 16:37:36 PKT 2017]; root of context hierarchy
       at org.springframework.context.support.AbstractApplicationContext.getLifecycleProcessor(AbstractApplicationContext.java:359)
       at org.springframework.context.support.AbstractApplicationContext.doClose(AbstractApplicationContext.java:888)
       at org.springframework.boot.context.embedded.EmbeddedWebApplicationContext.doClose(EmbeddedWebApplicationContext.java:145)
       at org.springframework.context.support.AbstractApplicationContext$1.run(AbstractApplicationContext.java:809)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.