i'm trying to use spring modules on VRaptor, but it just don't work.
I'm using the VRaptor 4 and trying to use Spring Transaction Manager, but i can't make VRaptor use Spring as the IoC, the Autowired don't work.
Any tips?
that is because VRaptor 4 is built on top of CDI. If you need to use Spring as IoC container, you still can use VRaptor 3.5.x versions.
Related
New to spring boot and spring, could not find any resources and Implementation examples
Tried the upgrades, but many classes from spring 1 x are deprecated and spring boot 2 X implementations are totally different
After upgrading to Java 17 and Spring Boot 3.0.1, jakarta is also replacing javax. You can add as many datasources as you like, as long as they share the same username/password and driveClassName. However, what if you have two datasources with different creds? There doesn't seem to be an equivalent to how javax handles this. i.e., see first answer here with the Config class...
Spring Boot configure and use two data sources
What is the jakarta equivalent or how do we configure this?
Can you use hibernate 4 with Spring boot 5? I am trying to integrate hibernate 4 with Spring boot 5 since I want to use Hibernate 4 functions and API instead of 5, but I am using Spring boot 5 and getting errors such as conflicting directories between Spring boot Hibernate and custom Hibernate.
I am using Spring 5.2.3 with Spring Boot 2.2.4.RELEASE
and I want to use Hibernate 4.3.x
In the list of supported Libraries for Spring 5.x, we can see Hibernate as 5+
https://github.com/spring-projects/spring-framework/wiki/Upgrading-to-Spring-Framework-5.x
Spring 5x is compatible with hibernate 4x unless you are using it as an implementation of JPA which might not be compatible.
A suggestion would be using the latest hibernate.
What's the best method to initiate a new Spring Project ?
Initiating Spring project is a lot of pain with various xml and db configuration.
Is there an "official" repository with complete sample project, as MVC with db access and so ?
Spring Boot may also be the solution, but some point still not clear to me :
How to add external components (such as Quartz) without creating some xml config ? (No such xml in Boot apparently)
Is a Spring Boot builded app is production-proof ?
As writen in the comments http://start.spring.io/ is the best way to start Spring boot project(STS has integration for it).
If you want to use something that is not supported by Spring Boot you can init spring beans the same way you do it in xml, just use java configuration. See this for example: http://www.tutorialspoint.com/spring/spring_java_based_configuration.htm
Also useing xml is still available. You can add #ImportResource on your Configuration class
#EnableAutoConfiguration
#Configuration
#ImportResource({"classpath*:applicationContext.xml"})
I am using Hibernate 4 CR1. My application was previously using Spring hibernate support (for version 3).
I have not been able to find any information about this - is there any indication as to when (or which version) Spring will provide support for Hibernate 4?
UPDATE: Spring Framework 3.1 goes GA
You need to upgrade to Spring 3.1.0.RC1 released today:
Spring 3.1.0.RC1 Released:
Support for Hibernate 4.0 (up to date with 4.0 CR4)
As per comment of one of the guys is is involved in the spring project it seems that they started working on hibernate 4 support:
http://forum.springsource.org/showthread.php?115682-Migrating-application-context-configuration-to-Spring-3.1-and-Hibernate-4.0&p=382864#post382864