Vejam os erros:
at br.com.jp.semob.Configuracao$$EnhancerBySpringCGLIB$$2d595bb1.dataSource(<generated>) ~[classes/:na]
at br.com.jp.semob.Configuracao.dataSource(Configuracao.java:27) [classes/:na]
at br.com.jp.semob.Configuracao$$EnhancerBySpringCGLIB$$2d595bb1.CGLIB$dataSource$0(<generated>) ~[classes/:na]
at br.com.jp.semob.Configuracao$$EnhancerBySpringCGLIB$$2d595bb1$$FastClassBySpringCGLIB$$13b13dbf.invoke(<generated>) ~[classes/:na]
at org.springframework.cglib.proxy.MethodProxy.invokeSuper(MethodProxy.java:228) ~[spring-core-4.3.3.RELEASE.jar:4.3.3.RELEASE]
at org.springframework.context.annotation.ConfigurationClassEnhancer$BeanMethodInterceptor.intercept(ConfigurationClassEnhancer.java:356) ~[spring-context-4.3.3.RELEASE.jar:4.3.3.RELEASE]
at br.com.jp.semob.Configuracao$$EnhancerBySpringCGLIB$$2d595bb1.dataSource(<generated>) ~[classes/:na]
at br.com.jp.semob.Configuracao.dataSource(Configuracao.java:27) [classes/:na]
at br.com.jp.semob.Configuracao$$EnhancerBySpringCGLIB$$2d595bb1.CGLIB$dataSource$0(<generated>) ~[classes/:na]
at br.com.jp.semob.Configuracao$$EnhancerBySpringCGLIB$$2d595bb1$$FastClassBySpringCGLIB$$13b13dbf.invoke(<generated>) ~[classes/:na]
at org.springframework.cglib.proxy.MethodProxy.invokeSuper(MethodProxy.java:228) ~[spring-core-4.3.3.RELEASE.jar:4.3.3.RELEASE]
at org.springframework.context.annotation.ConfigurationClassEnhancer$BeanMethodInterceptor.intercept(ConfigurationClassEnhancer.java:356) ~[spring-context-4.3.3.RELEASE.jar:4.3.3.RELEASE]
at br.com.jp.semob.Configuracao$$EnhancerBySpringCGLIB$$2d595bb1.dataSource(<generated>) ~[classes/:na]
at br.com.jp.semob.Configuracao.dataSource(Configuracao.java:27) [classes/:na]
at br.com.jp.semob.Configuracao$$EnhancerBySpringCGLIB$$2d595bb1.CGLIB$dataSource$0(<generated>) ~[classes/:na]
at br.com.jp.semob.Configuracao$$EnhancerBySpringCGLIB$$2d595bb1$$FastClassBySpringCGLIB$$13b13dbf.invoke(<generated>) ~[classes/:na]
at org.springframework.cglib.proxy.MethodProxy.invokeSuper(MethodProxy.java:228) ~[spring-core-4.3.3.RELEASE.jar:4.3.3.RELEASE]
at org.springframework.context.annotation.ConfigurationClassEnhancer$BeanMethodInterceptor.intercept(ConfigurationClassEnhancer.java:356) ~[spring-context-4.3.3.RELEASE.jar:4.3.3.RELEASE]
at br.com.jp.semob.Configuracao$$EnhancerBySpringCGLIB$$2d595bb1.dataSource(<generated>) ~[classes/:na]
at br.com.jp.semob.Configuracao.dataSource(Configuracao.java:27) [classes/:na]
at br.com.jp.semob.Configuracao$$EnhancerBySpringCGLIB$$2d595bb1.CGLIB$dataSource$0(<generated>) ~[classes/:na]
at br.com.jp.semob.Configuracao$$EnhancerBySpringCGLIB$$2d595bb1$$FastClassBySpringCGLIB$$13b13dbf.invoke(<generated>) ~[classes/:na]
at org.springframework.cglib.proxy.MethodProxy.invokeSuper(MethodProxy.java:228) ~[spring-core-4.3.3.RELEASE.jar:4.3.3.RELEASE]
at org.springframework.context.annotation.ConfigurationClassEnhancer$BeanMethodInterceptor.intercept(ConfigurationClassEnhancer.java:356) ~[spring-context-4.3.3.RELEASE.jar:4.3.3.RELEASE]
at br.com.jp.semob.Configuracao$$EnhancerBySpringCGLIB$$2d595bb1.dataSource(<generated>) ~[classes/:na]
at br.com.jp.semob.Configuracao.dataSource(Configuracao.java:27) [classes/:na]
at br.com.jp.semob.Configuracao$$EnhancerBySpringCGLIB$$2d595bb1.CGLIB$dataSource$0(<generated>) ~[classes/:na]
at br.com.jp.semob.Configuracao$$EnhancerBySpringCGLIB$$2d595bb1$$FastClassBySpringCGLIB$$13b13dbf.invoke(<generated>) ~[classes/:na]
at org.springframework.cglib.proxy.MethodProxy.invokeSuper(MethodProxy.java:228) ~[spring-core-4.3.3.RELEASE.jar:4.3.3.RELEASE]
at org.springframework.context.annotation.ConfigurationClassEnhancer$BeanMethodInterceptor.intercept(ConfigurationClassEnhancer.java:356) ~[spring-context-4.3.3.RELEASE.jar:4.3.3.RELEASE]
at br.com.jp.semob.Configuracao$$EnhancerBySpringCGLIB$$2d595bb1.dataSource(<generated>) ~[classes/:na]
at br.com.jp.semob.Configuracao.dataSource(Configuracao.java:27) [classes/:na]
at br.com.jp.semob.Configuracao$$EnhancerBySpringCGLIB$$2d595bb1.CGLIB$dataSource$0(<generated>) ~
package br.com.jp.semob;
import javax.sql.DataSource;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.context.annotation.Bean;
import org.springframework.jdbc.datasource.DriverManagerDataSource;
import org.springframework.stereotype.Controller;
@SpringBootApplication
@Controller
public class Configuracao {
public static void main(String[] args) {
SpringApplication.run(Configuracao.class,args);
}
@Bean
public DataSource dataSource() {
DriverManagerDataSource dataSource = new DriverManagerDataSource();
dataSource.setDriverClassName("com.mysql.jdbc.Driver");
dataSource.setUrl("jdbc:mysql://localhost:3306/semob");
dataSource.setUsername("root");
dataSource.setPassword("root");
return dataSource();
}
}