Size: a a a

Spring Framework and more

2020 June 07

E

Eugeny in Spring Framework and more
Добрый день. Уже всю голову поломал, надеюсь на помощь!
Spring MVC. Есть простейший контроллер, есть простейшая jsp-страница. Если обращаться к странице через полное имя, то работает она корректно. Если через путь из контроллера - все jsp-теги выключаются.
источник

РН

Роман Нагаев... in Spring Framework and more
#toAdmins
источник

N

Nuruddin in Spring Framework and more
источник

LL

Lionel Lawrence in Spring Framework and more
U got this error? Assign data sources?
источник

LL

Lionel Lawrence in Spring Framework and more
Lionel Lawrence
U got this error? Assign data sources?
Ignore the message.
источник

LL

Lionel Lawrence in Spring Framework and more
Lionel Lawrence
U got this error? Assign data sources?
Any workarounds for assigning data sources
источник

LL

Lionel Lawrence in Spring Framework and more
<properties>
           <property name="javax.persistence.jdbc.driver" value="org.postgresql.Driver"/>
           <property name="javax.persistence.jdbc.url" value="jdbc:postgresql://localhost:5432/imageHoster"/>

           <property name="javax.persistence.jdbc.user" value="postgres"/>
           <property name="javax.persistence.jdbc.password" value="g3gj3cgz"/>

           <property name="hibernate.dialect" value="org.hibernate.dialect.PostgreSQL82Dialect"/>
           <property name="hibernate.temp.use_jdbc_metadata_defaults" value="false"/>

           <property name="hibernate.hbm2ddl.auto" value="update"/> <!-- update -->
           <property name="hibernate.show_sql" value="true"/> <!-- Show SQL in console -->
           <property name="hibernate.format_sql" value="true"/> <!-- Show SQL formatted -->

       </properties>
источник

LL

Lionel Lawrence in Spring Framework and more
Caused by: org.hibernate.MappingException: Could not determine type for: ImageHoster.model.User, at table: comments, for columns: [org.hibernate.mapping.Column(user)]
 at org.hibernate.mapping.SimpleValue.getType(SimpleValue.java:488) ~[hibernate-core-5.4.12.Final.jar:5.4.12.Final]
 at org.hibernate.mapping.SimpleValue.isValid(SimpleValue.java:455) ~[hibernate-core-5.4.12.Final.jar:5.4.12.Final]
 at org.hibernate.mapping.Property.isValid(Property.java:227) ~[hibernate-core-5.4.12.Final.jar:5.4.12.Final]
 at org.hibernate.mapping.PersistentClass.validate(PersistentClass.java:624) ~[hibernate-core-5.4.12.Final.jar:5.4.12.Final]
 at org.hibernate.mapping.RootClass.validate(RootClass.java:267) ~[hibernate-core-5.4.12.Final.jar:5.4.12.Final]
 at org.hibernate.boot.internal.MetadataImpl.validate(MetadataImpl.java:351) ~[hibernate-core-5.4.12.Final.jar:5.4.12.Final]
 at org.hibernate.boot.internal.SessionFactoryBuilderImpl.build(SessionFactoryBuilderImpl.java:464) ~[hibernate-core-5.4.12.Final.jar:5.4.12.Final]
 at org.hibernate.jpa.boot.internal.EntityManagerFactoryBuilderImpl.build(EntityManagerFactoryBuilderImpl.java:1237) ~[hibernate-core-5.4.12.Final.jar:5.4.12.Final]
 at org.hibernate.jpa.HibernatePersistenceProvider.createContainerEntityManagerFactory(HibernatePersistenceProvider.java:141) ~[hibernate-core-5.4.12.Final.jar:5.4.12.Final]
 at org.springframework.orm.jpa.LocalContainerEntityManagerFactoryBean.createNativeEntityManagerFactory(LocalContainerEntityManagerFactoryBean.java:365) ~[spring-orm-5.2.5.RELEASE.jar:5.2.5.RELEASE]
 at org.springframework.orm.jpa.AbstractEntityManagerFactoryBean.buildNativeEntityManagerFactory(AbstractEntityManagerFactoryBean.java:391) ~[spring-orm-5.2.5.RELEASE.jar:5.2.5.RELEASE]
 ... 74 common frames omitted
источник

LL

Lionel Lawrence in Spring Framework and more
Lionel Lawrence
Caused by: org.hibernate.MappingException: Could not determine type for: ImageHoster.model.User, at table: comments, for columns: [org.hibernate.mapping.Column(user)]
 at org.hibernate.mapping.SimpleValue.getType(SimpleValue.java:488) ~[hibernate-core-5.4.12.Final.jar:5.4.12.Final]
 at org.hibernate.mapping.SimpleValue.isValid(SimpleValue.java:455) ~[hibernate-core-5.4.12.Final.jar:5.4.12.Final]
 at org.hibernate.mapping.Property.isValid(Property.java:227) ~[hibernate-core-5.4.12.Final.jar:5.4.12.Final]
 at org.hibernate.mapping.PersistentClass.validate(PersistentClass.java:624) ~[hibernate-core-5.4.12.Final.jar:5.4.12.Final]
 at org.hibernate.mapping.RootClass.validate(RootClass.java:267) ~[hibernate-core-5.4.12.Final.jar:5.4.12.Final]
 at org.hibernate.boot.internal.MetadataImpl.validate(MetadataImpl.java:351) ~[hibernate-core-5.4.12.Final.jar:5.4.12.Final]
 at org.hibernate.boot.internal.SessionFactoryBuilderImpl.build(SessionFactoryBuilderImpl.java:464) ~[hibernate-core-5.4.12.Final.jar:5.4.12.Final]
 at org.hibernate.jpa.boot.internal.EntityManagerFactoryBuilderImpl.build(EntityManagerFactoryBuilderImpl.java:1237) ~[hibernate-core-5.4.12.Final.jar:5.4.12.Final]
 at org.hibernate.jpa.HibernatePersistenceProvider.createContainerEntityManagerFactory(HibernatePersistenceProvider.java:141) ~[hibernate-core-5.4.12.Final.jar:5.4.12.Final]
 at org.springframework.orm.jpa.LocalContainerEntityManagerFactoryBean.createNativeEntityManagerFactory(LocalContainerEntityManagerFactoryBean.java:365) ~[spring-orm-5.2.5.RELEASE.jar:5.2.5.RELEASE]
 at org.springframework.orm.jpa.AbstractEntityManagerFactoryBean.buildNativeEntityManagerFactory(AbstractEntityManagerFactoryBean.java:391) ~[spring-orm-5.2.5.RELEASE.jar:5.2.5.RELEASE]
 ... 74 common frames omitted
error i am getting. Not able to comprehend the error message


Caused by: org.hibernate.MappingException: Could not determine type for: ImageHoster.model.User, at table: comments, for columns: [org.hibernate.mapping.Column(user)]
источник

LL

Lionel Lawrence in Spring Framework and more
Lionel Lawrence
<properties>
           <property name="javax.persistence.jdbc.driver" value="org.postgresql.Driver"/>
           <property name="javax.persistence.jdbc.url" value="jdbc:postgresql://localhost:5432/imageHoster"/>

           <property name="javax.persistence.jdbc.user" value="postgres"/>
           <property name="javax.persistence.jdbc.password" value="g3gj3cgz"/>

           <property name="hibernate.dialect" value="org.hibernate.dialect.PostgreSQL82Dialect"/>
           <property name="hibernate.temp.use_jdbc_metadata_defaults" value="false"/>

           <property name="hibernate.hbm2ddl.auto" value="update"/> <!-- update -->
           <property name="hibernate.show_sql" value="true"/> <!-- Show SQL in console -->
           <property name="hibernate.format_sql" value="true"/> <!-- Show SQL formatted -->

       </properties>
my db properties
источник

✔D

✔️Alexey Draznin in Spring Framework and more
Lionel Lawrence
error i am getting. Not able to comprehend the error message


Caused by: org.hibernate.MappingException: Could not determine type for: ImageHoster.model.User, at table: comments, for columns: [org.hibernate.mapping.Column(user)]
You need hibernate custom converter to save complex object to simple column
источник

BB

BitcoinCash_Classic ... in Spring Framework and more
omg
источник

LL

Lionel Lawrence in Spring Framework and more
✔️Alexey Draznin
You need hibernate custom converter to save complex object to simple column
Maybe I don't need to have complex objects. I'm having some issues with variable declaration and mapping between tables.
источник

LL

Lionel Lawrence in Spring Framework and more
I'll come back with updates
источник

LL

Lionel Lawrence in Spring Framework and more
Thanks
источник

C

Cyclone in Spring Framework and more
Eugeny
Добрый день. Уже всю голову поломал, надеюсь на помощь!
Spring MVC. Есть простейший контроллер, есть простейшая jsp-страница. Если обращаться к странице через полное имя, то работает она корректно. Если через путь из контроллера - все jsp-теги выключаются.
Видимо, у тебя нет jsp view resolver'а.
источник

OD

Olexander D. in Spring Framework and more
Как прописать wildcard для параметра token? Пробовал с * и **, но все равно 403
источник

OD

Olexander D. in Spring Framework and more
источник

C

Cyclone in Spring Framework and more
Зачем? После символа ? уже слешей не будет.
источник

C

Cyclone in Spring Framework and more
Я не знаю, как ты используешь эту строку, но звёздочки используются для обозначения уровней, разделенных слэшем, а это у тебя параметр, тут здесь вложенности уже не причём.
источник