Форум программистов, компьютерный форум, киберфорум
Java: Spring, Spring Boot
Войти
Регистрация
Восстановить пароль
Блоги Сообщество Поиск Заказать работу  
 
Рейтинг 4.82/11: Рейтинг темы: голосов - 11, средняя оценка - 4.82
3 / 3 / 1
Регистрация: 29.02.2016
Сообщений: 97

Spring не могу подключиться к базе

26.10.2016, 17:39. Показов 2264. Ответов 7
Метки нет (Все метки)

Студворк — интернет-сервис помощи студентам
Всем привет!
Кто - то может подсказать, почему не могу подключиться, и выдает след ошибки?
Я только начинаю с разбираться с spring
Java
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
@Configuration
@PropertySource("classpath:config.properties")
@EnableTransactionManagement
@EnableJpaRepositories("com.gmail.nedoluga.yaroslav.entity.repository")
public class DataConfig {
 
    @Value("${hibernate.dialect}")
    private String sqlDialect;
    @Value("${hbm2ddl.auto}")
    private String hbm2dllAuto;
    @Value("${spring.datasource.url}")
    private String url;
    @Value("${spring.datasource.username}")
    private String name;
    @Value("${spring.datasource.password}")
    private String password;
    @Value("${dataSource.driverClassName}")
    private String driver;
 
    @Bean
    public LocalContainerEntityManagerFactoryBean entityManagerFactory
            (DataSource dataSource, JpaVendorAdapter jpaVendorAdapter)
    {
        Properties jpaProp = new Properties();
       jpaProp.put("hibernate.hbm2ddl.auto", hbm2dllAuto);
        LocalContainerEntityManagerFactoryBean entityManagerFactory = new LocalContainerEntityManagerFactoryBean();
        entityManagerFactory.setDataSource(dataSource);
        entityManagerFactory.setJpaVendorAdapter(jpaVendorAdapter);
        entityManagerFactory.setPackagesToScan("com.gmail.nedoluga.yaroslav.entity");
        entityManagerFactory.setJpaProperties(jpaProp);
        return entityManagerFactory;
    }
 
    @Bean
    public PlatformTransactionManager transactionManager(EntityManagerFactory emf){
        return new JpaTransactionManager(emf);
    }
 
    @Bean (name="jpaVendorAdapter")
    public JpaVendorAdapter jpaVendorAdapter() {
        HibernateJpaVendorAdapter adapter = new HibernateJpaVendorAdapter();
        adapter.setDatabasePlatform(sqlDialect);
        adapter.setShowSql(true);
        adapter.setGenerateDdl(true);
        return adapter;
    }
 
    @Bean(name="dataSource")
    public DataSource getDataSource() {
//        SimpleDriverDataSource dataSource = new SimpleDriverDataSource();
        DriverManagerDataSource dataSource = new DriverManagerDataSource();
        dataSource.setDriverClassName(driver);
//        dataSource.setDriverClass(com.mysql.cj.jdbc.Driver.class);
        dataSource.setUrl(url);
        dataSource.setUsername(name);
        dataSource.setPassword(password);
        return dataSource;
    }}
и вот что не нравится:
Кликните здесь для просмотра всего текста
2016-10-26 17:13:07.946 WARN 5924 --- [ main] ationConfigEmbeddedWebApplicationContext : Exception encountered during context initialization - cancelling refresh attempt: org.springframework.beans.factory.Unsati sfiedDependencyException: Error creating bean with name 'entityManagerFactory' defined in class path resource [com/gmail/nedoluga/yaroslav/config/DataConfig.class]: Unsatisfied dependency expressed through method 'entityManagerFactory' parameter 1; nested exception is org.springframework.beans.factory.BeanCr eationException: Error creating bean with name 'jpaVendorAdapter' defined in class path resource [com/gmail/nedoluga/yaroslav/config/DataConfig.class]: Bean instantiation via factory method failed; nested exception is org.springframework.beans.BeanInstantiat ionException: Failed to instantiate [org.springframework.orm.jpa.JpaVendorAda pter]: Factory method 'jpaVendorAdapter' threw exception; nested exception is java.lang.IllegalStateException: Failed to determine Hibernate PersistenceProvider
2016-10-26 17:13:07.953 INFO 5924 --- [ main] o.apache.catalina.core.StandardService : Stopping service Tomcat
2016-10-26 17:13:07.985 WARN 5924 --- [ main] o.s.boot.SpringApplication : Error handling failed (Error creating bean with name 'delegatingApplicationListener' defined in class path resource [org/springframework/security/config/annotation/web/configuration/WebSecurityConfiguration.class]: BeanPostProcessor before instantiation of bean failed; nested exception is org.springframework.beans.factory.BeanCr eationException: Error creating bean with name 'org.springframework.transaction.annotat ion.ProxyTransactionManagementConfigurat ion': Initialization of bean failed; nested exception is org.springframework.beans.factory.NoSuch BeanDefinitionException: No bean named 'org.springframework.context.annotation. ConfigurationClassPostProcessor.importRe gistry' is defined)
2016-10-26 17:13:08.014 ERROR 5924 --- [ main] o.s.boot.SpringApplication : Application startup failed

org.springframework.beans.factory.Unsati sfiedDependencyException: Error creating bean with name 'entityManagerFactory' defined in class path resource [com/gmail/nedoluga/yaroslav/config/DataConfig.class]: Unsatisfied dependency expressed through method 'entityManagerFactory' parameter 1; nested exception is org.springframework.beans.factory.BeanCr eationException: Error creating bean with name 'jpaVendorAdapter' defined in class path resource [com/gmail/nedoluga/yaroslav/config/DataConfig.class]: Bean instantiation via factory method failed; nested exception is org.springframework.beans.BeanInstantiat ionException: Failed to instantiate [org.springframework.orm.jpa.JpaVendorAda pter]: Factory method 'jpaVendorAdapter' threw exception; nested exception is java.lang.IllegalStateException: Failed to determine Hibernate PersistenceProvider
at org.springframework.beans.factory.suppor t.ConstructorResolver.createArgumentArra y(ConstructorResolver.java:749) ~[spring-beans-4.3.3.RELEASE.jar:4.3.3.RELEASE]
at org.springframework.beans.factory.suppor t.ConstructorResolver.instantiateUsingFa ctoryMethod(ConstructorResolver.java:467 ) ~[spring-beans-4.3.3.RELEASE.jar:4.3.3.RELEASE]
at org.springframework.beans.factory.suppor t.AbstractAutowireCapableBeanFactory.ins tantiateUsingFactoryMethod(AbstractAutow ireCapableBeanFactory.java:1128) ~[spring-beans-4.3.3.RELEASE.jar:4.3.3.RELEASE]
at org.springframework.beans.factory.suppor t.AbstractAutowireCapableBeanFactory.cre ateBeanInstance(AbstractAutowireCapableB eanFactory.java:1023) ~[spring-beans-4.3.3.RELEASE.jar:4.3.3.RELEASE]
at org.springframework.beans.factory.suppor t.AbstractAutowireCapableBeanFactory.doC reateBean(AbstractAutowireCapableBeanFac tory.java:510) ~[spring-beans-4.3.3.RELEASE.jar:4.3.3.RELEASE]
at org.springframework.beans.factory.suppor t.AbstractAutowireCapableBeanFactory.cre ateBean(AbstractAutowireCapableBeanFacto ry.java:482) ~[spring-beans-4.3.3.RELEASE.jar:4.3.3.RELEASE]
at org.springframework.beans.factory.suppor t.AbstractBeanFactory$1.getObject(Abstra ctBeanFactory.java:306) ~[spring-beans-4.3.3.RELEASE.jar:4.3.3.RELEASE]
at org.springframework.beans.factory.suppor t.DefaultSingletonBeanRegistry.getSingle ton(DefaultSingletonBeanRegistry.java:23 0) ~[spring-beans-4.3.3.RELEASE.jar:4.3.3.RELEASE]
at org.springframework.beans.factory.suppor t.AbstractBeanFactory.doGetBean(Abstract BeanFactory.java:302) ~[spring-beans-4.3.3.RELEASE.jar:4.3.3.RELEASE]
at org.springframework.beans.factory.suppor t.AbstractBeanFactory.getBean(AbstractBe anFactory.java:197) ~[spring-beans-4.3.3.RELEASE.jar:4.3.3.RELEASE]
at org.springframework.context.support.Abst ractApplicationContext.getBean(AbstractA pplicationContext.java:1076) ~[spring-context-4.3.3.RELEASE.jar:4.3.3.RELEASE]
at org.springframework.context.support.Abst ractApplicationContext.finishBeanFactory Initialization(AbstractApplicationContex t.java:851) ~[spring-context-4.3.3.RELEASE.jar:4.3.3.RELEASE]
at org.springframework.context.support.Abst ractApplicationContext.refresh(AbstractA pplicationContext.java:541) ~[spring-context-4.3.3.RELEASE.jar:4.3.3.RELEASE]
at org.springframework.boot.context.embedde d.EmbeddedWebApplicationContext.refresh( EmbeddedWebApplicationContext.java:122) ~[spring-boot-1.4.1.RELEASE.jar:1.4.1.RELEASE]
at org.springframework.boot.SpringApplicati on.refresh(SpringApplication.java:761) [spring-boot-1.4.1.RELEASE.jar:1.4.1.RELEASE]
at org.springframework.boot.SpringApplicati on.refreshContext(SpringApplication.java :371) [spring-boot-1.4.1.RELEASE.jar:1.4.1.RELEASE]
at org.springframework.boot.SpringApplicati on.run(SpringApplication.java:315) [spring-boot-1.4.1.RELEASE.jar:1.4.1.RELEASE]
at org.springframework.boot.SpringApplicati on.run(SpringApplication.java:1186) [spring-boot-1.4.1.RELEASE.jar:1.4.1.RELEASE]
at org.springframework.boot.SpringApplicati on.run(SpringApplication.java:1175) [spring-boot-1.4.1.RELEASE.jar:1.4.1.RELEASE]
at com.gmail.nedoluga.yaroslav.config.Appli cation.main(Application.java:14) [classes/:na]
at sun.reflect.NativeMethodAccessorImpl.inv oke0(Native Method) ~[na:1.8.0_102]
at sun.reflect.NativeMethodAccessorImpl.inv oke(NativeMethodAccessorImpl.java:62) ~[na:1.8.0_102]
at sun.reflect.DelegatingMethodAccessorImpl .invoke(DelegatingMethodAccessorImpl.jav a:43) ~[na:1.8.0_102]
at java.lang.reflect.Method.invoke(Method.j ava:498) ~[na:1.8.0_102]
at com.intellij.rt.execution.application.Ap pMain.main(AppMain.java:147) [idea_rt.jar:na]
Caused by: org.springframework.beans.factory.BeanCr eationException: Error creating bean with name 'jpaVendorAdapter' defined in class path resource [com/gmail/nedoluga/yaroslav/config/DataConfig.class]: Bean instantiation via factory method failed; nested exception is org.springframework.beans.BeanInstantiat ionException: Failed to instantiate [org.springframework.orm.jpa.JpaVendorAda pter]: Factory method 'jpaVendorAdapter' threw exception; nested exception is java.lang.IllegalStateException: Failed to determine Hibernate PersistenceProvider
at org.springframework.beans.factory.suppor t.ConstructorResolver.instantiateUsingFa ctoryMethod(ConstructorResolver.java:599 ) ~[spring-beans-4.3.3.RELEASE.jar:4.3.3.RELEASE]
at org.springframework.beans.factory.suppor t.AbstractAutowireCapableBeanFactory.ins tantiateUsingFactoryMethod(AbstractAutow ireCapableBeanFactory.java:1128) ~[spring-beans-4.3.3.RELEASE.jar:4.3.3.RELEASE]
at org.springframework.beans.factory.suppor t.AbstractAutowireCapableBeanFactory.cre ateBeanInstance(AbstractAutowireCapableB eanFactory.java:1023) ~[spring-beans-4.3.3.RELEASE.jar:4.3.3.RELEASE]
at org.springframework.beans.factory.suppor t.AbstractAutowireCapableBeanFactory.doC reateBean(AbstractAutowireCapableBeanFac tory.java:510) ~[spring-beans-4.3.3.RELEASE.jar:4.3.3.RELEASE]
at org.springframework.beans.factory.suppor t.AbstractAutowireCapableBeanFactory.cre ateBean(AbstractAutowireCapableBeanFacto ry.java:482) ~[spring-beans-4.3.3.RELEASE.jar:4.3.3.RELEASE]
at org.springframework.beans.factory.suppor t.AbstractBeanFactory$1.getObject(Abstra ctBeanFactory.java:306) ~[spring-beans-4.3.3.RELEASE.jar:4.3.3.RELEASE]
at org.springframework.beans.factory.suppor t.DefaultSingletonBeanRegistry.getSingle ton(DefaultSingletonBeanRegistry.java:23 0) ~[spring-beans-4.3.3.RELEASE.jar:4.3.3.RELEASE]
at org.springframework.beans.factory.suppor t.AbstractBeanFactory.doGetBean(Abstract BeanFactory.java:302) ~[spring-beans-4.3.3.RELEASE.jar:4.3.3.RELEASE]
at org.springframework.beans.factory.suppor t.AbstractBeanFactory.getBean(AbstractBe anFactory.java:202) ~[spring-beans-4.3.3.RELEASE.jar:4.3.3.RELEASE]
at org.springframework.beans.factory.config .DependencyDescriptor.resolveCandidate(D ependencyDescriptor.java:207) ~[spring-beans-4.3.3.RELEASE.jar:4.3.3.RELEASE]
at org.springframework.beans.factory.suppor t.DefaultListableBeanFactory.doResolveDe pendency(DefaultListableBeanFactory.java :1128) ~[spring-beans-4.3.3.RELEASE.jar:4.3.3.RELEASE]
at org.springframework.beans.factory.suppor t.DefaultListableBeanFactory.resolveDepe ndency(DefaultListableBeanFactory.java:1 056) ~[spring-beans-4.3.3.RELEASE.jar:4.3.3.RELEASE]
at org.springframework.beans.factory.suppor t.ConstructorResolver.resolveAutowiredAr gument(ConstructorResolver.java:835) ~[spring-beans-4.3.3.RELEASE.jar:4.3.3.RELEASE]
at org.springframework.beans.factory.suppor t.ConstructorResolver.createArgumentArra y(ConstructorResolver.java:741) ~[spring-beans-4.3.3.RELEASE.jar:4.3.3.RELEASE]
... 24 common frames omitted
Caused by: org.springframework.beans.BeanInstantiat ionException: Failed to instantiate [org.springframework.orm.jpa.JpaVendorAda pter]: Factory method 'jpaVendorAdapter' threw exception; nested exception is java.lang.IllegalStateException: Failed to determine Hibernate PersistenceProvider
at org.springframework.beans.factory.suppor t.SimpleInstantiationStrategy.instantiat e(SimpleInstantiationStrategy.java:189) ~[spring-beans-4.3.3.RELEASE.jar:4.3.3.RELEASE]
at org.springframework.beans.factory.suppor t.ConstructorResolver.instantiateUsingFa ctoryMethod(ConstructorResolver.java:588 ) ~[spring-beans-4.3.3.RELEASE.jar:4.3.3.RELEASE]
... 37 common frames omitted
Caused by: java.lang.IllegalStateException: Failed to determine Hibernate PersistenceProvider
at org.springframework.orm.jpa.vendor.Hiber nateJpaVendorAdapter.<init>(HibernateJpa VendorAdapter.java:96) ~[spring-orm-4.3.3.RELEASE.jar:4.3.3.RELEASE]
at com.gmail.nedoluga.yaroslav.config.DataC onfig.jpaVendorAdapter(DataConfig.java:6 3) ~[classes/:na]
at com.gmail.nedoluga.yaroslav.config.DataC onfig$$EnhancerBySpringCGLIB$$1fd1c235.C GLIB$jpaVendorAdapter$3(<generated>) ~[classes/:na]
at com.gmail.nedoluga.yaroslav.config.DataC onfig$$EnhancerBySpringCGLIB$$1fd1c235$$ FastClassBySpringCGLIB$$69efee63.invoke( <generated>) ~[classes/:na]
at org.springframework.cglib.proxy.MethodPr oxy.invokeSuper(MethodProxy.java:228) ~[spring-core-4.3.3.RELEASE.jar:4.3.3.RELEASE]
at org.springframework.context.annotation.C onfigurationClassEnhancer$BeanMethodInte rceptor.intercept(ConfigurationClassEnha ncer.java:356) ~[spring-context-4.3.3.RELEASE.jar:4.3.3.RELEASE]
at com.gmail.nedoluga.yaroslav.config.DataC onfig$$EnhancerBySpringCGLIB$$1fd1c235.j paVendorAdapter(<generated>) ~[classes/:na]
at sun.reflect.NativeMethodAccessorImpl.inv oke0(Native Method) ~[na:1.8.0_102]
at sun.reflect.NativeMethodAccessorImpl.inv oke(NativeMethodAccessorImpl.java:62) ~[na:1.8.0_102]
at sun.reflect.DelegatingMethodAccessorImpl .invoke(DelegatingMethodAccessorImpl.jav a:43) ~[na:1.8.0_102]
at java.lang.reflect.Method.invoke(Method.j ava:498) ~[na:1.8.0_102]
at org.springframework.beans.factory.suppor t.SimpleInstantiationStrategy.instantiat e(SimpleInstantiationStrategy.java:162) ~[spring-beans-4.3.3.RELEASE.jar:4.3.3.RELEASE]
... 38 common frames omitted
Caused by: java.lang.ClassNotFoundException: org.hibernate.ejb.HibernateEntityManager Factory
at java.net.URLClassLoader.findClass(URLCla ssLoader.java:381) ~[na:1.8.0_102]
at java.lang.ClassLoader.loadClass(ClassLoa der.java:424) ~[na:1.8.0_102]
at sun.misc.Launcher$AppClassLoader.loadCla ss(Launcher.java:331) ~[na:1.8.0_102]
at java.lang.ClassLoader.loadClass(ClassLoa der.java:357) ~[na:1.8.0_102]
at org.springframework.orm.jpa.vendor.Hiber nateJpaVendorAdapter.<init>(HibernateJpa VendorAdapter.java:89) ~[spring-orm-4.3.3.RELEASE.jar:4.3.3.RELEASE]
... 49 common frames omitted
0
Лучшие ответы (1)
Programming
Эксперт
39485 / 9562 / 3019
Регистрация: 12.04.2006
Сообщений: 41,671
Блог
26.10.2016, 17:39
Ответы с готовыми решениями:

Не могу подключиться к базе
Здравствуйте. Возникла проблема: в один прекрасный день перестала работать БД. Ни из студии, ни из ssms не могу подключиться пишет: ...

Не могу подключиться к базе
Доброго времени суток, Я хотел попрактиковаться с SQL Devlopper,и для этого установил(по инструкции) oracle database express edition 11g...

Не могу подключиться к базе
Полетела база, нужно срочно восстановить, но после установки Oracle я не могу подключиться к своей базе, пишут что нет прослушивателя! ...

7
Эксперт Java
 Аватар для turbanoff
4094 / 3828 / 745
Регистрация: 18.05.2010
Сообщений: 9,331
Записей в блоге: 12
26.10.2016, 18:09
Цитата Сообщение от Nedoluga Посмотреть сообщение
Caused by: java.lang.ClassNotFoundException: org.hibernate.ejb.HibernateEntityManager Factory
Не хватает зависимости (jar-ника в classpath) - hibernate-entitymanager.jar
1
3 / 3 / 1
Регистрация: 29.02.2016
Сообщений: 97
26.10.2016, 18:33  [ТС]
Да вроде есть... Или это не оно? Или нужно теперь зайти в .m2 - удалить и "поставить" заново?
Миниатюры
Spring не могу подключиться к базе  
0
3 / 3 / 1
Регистрация: 29.02.2016
Сообщений: 97
26.10.2016, 20:04  [ТС]
turbanoff, может я что - то в pom.xml напутал?

Добавлено через 38 минут
XML
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
<?xml version="1.0" encoding="UTF-8"?>
<project xmlns="http://maven.apache.org/POM/4.0.0"
         xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
         xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
    <modelVersion>4.0.0</modelVersion>
 
    <groupId>com.gmail.nedoluga.yaroslav</groupId>
    <artifactId>progbrand</artifactId>
    <version>1.0-SNAPSHOT</version>
 
    <properties>
        <project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
        <java.version>1.8</java.version>
        <spring.boot>1.4.1.RELEASE</spring.boot>
        <hibernate>5.2.3.Final</hibernate>
        <hibernate.validator>5.3.0.Final</hibernate.validator>
        <mysql.conector>6.0.4</mysql.conector>
        <javax.servlet>3.1.0</javax.servlet>
        <jstl>1.2</jstl>
    </properties>
 
    <parent>
        <groupId>org.springframework.boot</groupId>
        <artifactId>spring-boot-starter-parent</artifactId>
        <version>1.4.1.RELEASE</version>
    </parent>
 
    <dependencies>
        <!--spring-->
        <dependency>
            <groupId>org.springframework.boot</groupId>
            <artifactId>spring-boot-starter-web</artifactId>
        </dependency>
        <dependency>
            <groupId>org.springframework.boot</groupId>
            <artifactId>spring-boot-starter-data-jpa</artifactId>
        </dependency>
        <dependency>
            <groupId>org.springframework.boot</groupId>
            <artifactId>spring-boot-starter-security</artifactId>
        </dependency>
        <dependency>
            <groupId>org.springframework.boot</groupId>
            <artifactId>spring-boot-starter-jdbc</artifactId>
        </dependency>
        <!--DB-->
        <dependency>
            <groupId>org.hibernate</groupId>
            <artifactId>hibernate-entitymanager</artifactId>
            <version>${hibernate}</version>
        </dependency>
        <!--stack-->
        <dependency>
            <groupId>org.springframework</groupId>
            <artifactId>spring-orm</artifactId>
            <version>4.3.3.RELEASE</version>
        </dependency>
        <!--stack_end-->
        <dependency>
            <groupId>org.hibernate</groupId>
            <artifactId>hibernate-validator</artifactId>
            <version>${hibernate.validator}</version>
        </dependency>
        <dependency>
            <groupId>mysql</groupId>
            <artifactId>mysql-connector-java</artifactId>
            <version>${mysql.conector}</version>
        </dependency>
        <!--Other-->
        <dependency>
            <groupId>javax.servlet</groupId>
            <artifactId>javax.servlet-api</artifactId>
            <version>${javax.servlet}</version>
        </dependency>
        <dependency>
            <groupId>jstl</groupId>
            <artifactId>jstl</artifactId>
            <version>${jstl}</version>
        </dependency>
 
 
    </dependencies>
 
    <build>
        <plugins>
            <plugin>
                <groupId>org.springframework.boot</groupId>
                <artifactId>spring-boot-maven-plugin</artifactId>
            </plugin>
            <plugin>
                <groupId>org.apache.maven.plugins</groupId>
                <artifactId>maven-compiler-plugin</artifactId>
                <configuration>
                    <source>1.7</source>
                    <target>1.7</target>
                </configuration>
            </plugin>
        </plugins>
    </build>
</project>
Добавлено через 27 минут
В итоге методом "тыка" получилось добиться такой ошибки:
Caused by: com.mysql.cj.core.exceptions.InvalidConn ectionAttributeException: The server time zone value '��������� (����)' is unrecognized or represents more than one time zone. You must configure either the server or JDBC driver (via the serverTimezone configuration property) to use a more specifc time zone value if you want to utilize time zone support.
Тем самым я получается смог починить прошлую или они не связаны?)
P.S. Может кто-то знает как теперь эту проблему решить?
0
Эксперт Java
378 / 370 / 114
Регистрация: 30.06.2010
Сообщений: 1,445
26.10.2016, 20:07
Лучший ответ Сообщение было отмечено Nedoluga как решение

Решение

у тебя jar без классов

убери из pom spring-boot-starter-jdbc, spring-orm, hibernate-entitymanager и hibernate-validator. эти зависимости добавятся транзакционно от spring-boot-starter-data-jpa

Добавлено через 1 минуту
по тамзоне ошибка другая, впервые такое вижу
1
3 / 3 / 1
Регистрация: 29.02.2016
Сообщений: 97
26.10.2016, 20:40  [ТС]
LeX BB,
Вроде помогло, спасибо. Ну насчет тамзоне быстро нашлось решение.
Можно несколько вопросов не по теме, а то уже голова отключилась:
1.
у тебя jar без классов
- как это исправить?
2. Дополнительно нужно в pom.xml зависимости прописывать, если у меня отображения на jsp (да, знаю что не годиться, но все же...), а то результат не совсем такой оказался, вот и думаю, в контроллере дело или сам boot требует зависимостей по этому поводу.
Еще раз спасибо!
0
Эксперт Java
378 / 370 / 114
Регистрация: 30.06.2010
Сообщений: 1,445
26.10.2016, 20:54
1. ты уже исправил
2. не понял
0
3 / 3 / 1
Регистрация: 29.02.2016
Сообщений: 97
26.10.2016, 21:04  [ТС]
Это я уже немного бредить начал, извините.
0
Надоела реклама? Зарегистрируйтесь и она исчезнет полностью.
inter-admin
Эксперт
29715 / 6470 / 2152
Регистрация: 06.03.2009
Сообщений: 28,500
Блог
26.10.2016, 21:04
Помогаю со студенческими работами здесь

Не могу подключиться к базе
Я совсем недавно решил научиться работать с базами данных и нашёл проблему буквально сразу dmitry@ubuntu:~$ sudo service mysqld start ...

Не могу подключиться к базе
Работаю в VS 2012. Установлена последняя версия SQL Server Compact. Вот код подключения: Dim connetionString As String = &quot;Data...

Не могу могу подключиться к базе данных
Написал программу, далее скопировал базу в корень диска D, а выдает ошибку: &quot;Необработанное исключение типа...

Не могу подключиться к базе данных
Есть скрипт скандинавского аукциона. После заливки на сервер, не могу подключиться к базе данных. Ниже представлена 11 строка файла ...

не могу подключиться к базе данных
у меня есть есть сайт надо перекинуть его на новый комп. скачал sql server express установил все захожу в server management studio а...


Искать еще темы с ответами

Или воспользуйтесь поиском по форуму:
8
Ответ Создать тему
Новые блоги и статьи
PhpStorm 2025.3: WSL Terminal всегда стартует в ~
and_y87 14.12.2025
PhpStorm 2025. 3: WSL Terminal всегда стартует в ~ (home), игнорируя директорию проекта Симптом: После обновления до PhpStorm 2025. 3 встроенный терминал WSL открывается в домашней директории. . .
Access
VikBal 11.12.2025
Помогите пожалуйста !! Как объединить 2 одинаковые БД Access с разными данными.
Новый ноутбук
volvo 07.12.2025
Всем привет. По скидке в "черную пятницу" взял себе новый ноутбук Lenovo ThinkBook 16 G7 на Амазоне: Ryzen 5 7533HS 64 Gb DDR5 1Tb NVMe 16" Full HD Display Win11 Pro
Музыка, написанная Искусственным Интеллектом
volvo 04.12.2025
Всем привет. Некоторое время назад меня заинтересовало, что уже умеет ИИ в плане написания музыки для песен, и, собственно, исполнения этих самых песен. Стихов у нас много, уже вышли 4 книги, еще 3. . .
От async/await к виртуальным потокам в Python
IndentationError 23.11.2025
Армин Ронахер поставил под сомнение async/ await. Создатель Flask заявляет: цветные функции - провал, виртуальные потоки - решение. Не threading-динозавры, а новое поколение лёгких потоков. Откат?. . .
Поиск "дружественных имён" СОМ портов
Argus19 22.11.2025
Поиск "дружественных имён" СОМ портов На странице: https:/ / norseev. ru/ 2018/ 01/ 04/ comportlist_windows/ нашёл схожую тему. Там приведён код на С++, который показывает только имена СОМ портов, типа,. . .
Сколько Государство потратило денег на меня, обеспечивая инсулином.
Programma_Boinc 20.11.2025
Сколько Государство потратило денег на меня, обеспечивая инсулином. Вот решила сделать интересный приблизительный подсчет, сколько государство потратило на меня денег на покупку инсулинов. . . .
Ломающие изменения в C#.NStar Alpha
Etyuhibosecyu 20.11.2025
Уже можно не только тестировать, но и пользоваться C#. NStar - писать оконные приложения, содержащие надписи, кнопки, текстовые поля и даже изображения, например, моя игра "Три в ряд" написана на этом. . .
Мысли в слух
kumehtar 18.11.2025
Кстати, совсем недавно имел разговор на тему медитаций с людьми. И обнаружил, что они вообще не понимают что такое медитация и зачем она нужна. Самые базовые вещи. Для них это - когда просто люди. . .
Создание Single Page Application на фреймах
krapotkin 16.11.2025
Статья исключительно для начинающих. Подходы оригинальностью не блещут. В век Веб все очень привыкли к дизайну Single-Page-Application . Быстренько разберем подход "на фреймах". Мы делаем одну. . .
КиберФорум - форум программистов, компьютерный форум, программирование
Powered by vBulletin
Copyright ©2000 - 2025, CyberForum.ru