Skip to content

Instantly share code, notes, and snippets.

#! /bin/sh
# Set up a default search path
PATH="/usr/bin:/bin"
CURL=`which curl`
if [ -z "$CURL" ]; then
echo "curl not found"
exit 1
fi
@Service
public class Example1Service {
@Transactional
public void doSomethingTransactional() {
...
}
@Transactional
protected void doSomethingTransactionalProtected() {
...
@rainoko
rainoko / Application.java
Last active March 9, 2019 11:20
Simple spring boot application
package bytetrain;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.boot.CommandLineRunner;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
@SpringBootApplication