Code example in medium's story [LINE Bot with Spring Boot Step-by-Step]
After cloned this repo into your local machine, if you want to run locally, follow this step.
Open application.yml file src/main/resources/application.yml
replace channel-token
and channel-secret
value with your particular values from LINE developer console.
line.bot:
channel-token: 'Put Your Channel Token Here.'
channel-secret: 'Put Your Channel Secret Here.'
handler.path: /callback
To run application in your local machine use this command:
$ mvn spring-boot:run
. ____ _ __ _ _
/\\ / ___'_ __ _ _(_)_ __ __ _ \ \ \ \
( ( )\___ | '_ | '_| | '_ \/ _` | \ \ \ \
\\/ ___)| |_)| | | | | || (_| | ) ) ) )
' |____| .__|_| |_|_| |_\__, | / / / /
=========|_|==============|___/=/_/_/_/
:: Spring Boot :: (v2.0.4.RELEASE)
........
INFO 35569 --- [main] com.iphayao.linebot.Application : Started Application in 4.393 seconds (JVM running for 9.056)