Posts

Showing posts with the label SPRING

Unit testing Spring Boot applications

Check here a good overview of unit testing your spring boot application: 1- Unit Testing with Spring Boot 2- Testing Spring MVC Web Controllers with @WebMvcTest 3- Testing JPA Queries with @DataJpaTest 4- Integration Tests with @SpringBootTest Start with:  https://reflectoring.io/unit-testing-spring-boot/

OAuth & Spring boot

An introduction to OAuth with Spring Boot: https://dzone.com/articles/build-a-secure-spa-with-spring-boot-and-oauth

Spring Boot ... best practices

https://dzone.com/articles/spring-projects-best-practices-episode-i?utm_source=Top%205&utm_medium=email&utm_campaign=2017-09-01

The spring vs. jee battle

There are many articles about the spring vs. jee battle. This one is one of the nicest, specially some responses bring it clearly to the point, why spring isn't dead. https://blogs.oracle.com/arungupta/entry/why_java_ee_6_is

Hibernate native SQL with Spring Data

Adding Hibernate native SQL features into your Spring Data Repository JPA provides @NamedNativeQuery for you to use native SQL. However, the usage is not so convenient, especially when you need to map multiple entities in your native SQL. You have to define a set of SqlResultSetMapping mapping which is quite error prone... http://borislam.blogspot.hk/2012/07/adding-hibernate-native-sql-features.html

web application with Spring 3.1

This is the first of a series of articles about setting up a RESTfull web application using Spring 3.1 with Java based configuration... http://www.baeldung.com/2011/10/20/bootstraping-a-web-application-with-spring-3-1-and-java-based-configuration-part-1/

Observer pattern with Spring

... This pattern can be implemented using an adhoc solution or using java.util.Observer/Observable classes. But my projects are always developed with Spring whether they are web or desktop applications. So in current post I will explain how I implement Observer pattern with Spring... http://www.lordofthejars.com/2011/10/una-terra-promessa-un-mondo-diverso.html

SPRING DATA - JPA

Spring JPA is part of the umbrella Spring Data project that makes it easy to easily implement JPA based repositories. Now available on O'Reilly's Open Feedback Publishing System is the book Spring Data: Modern Data Access for Enterprise Java which covers Spring Data JPA. Feedback is very much appreciated! http://www.springsource.org/spring-data/jpa

Spring MVC 3.1‏

http://www.lordofthejars.com/2011/06/tonari-no-to-to-ro-totoro-to-to-ro.html

SpringFuse: Online Java Code Generator

SpringFuse is the online version of Celerio, a code generation tool for Java developed by Jaxio. It reverses your database structure and generates top-quality Java source code that you can use immediately as the foundation of your web application.... http://www.springfuse.com/

Struts2, Spring2 JPA & AJAX

On this tutorial we will demonstrate how to setup Struts 2 in Eclipse, and make it work with Spring, Java Persistence API (using Hibernate) and Struts 2 Ajax tags... http://struts.apache.org/2.0.14/docs/struts-2-spring-2-jpa-ajax.html

Integreting Spring Beans with JMX

.. and manage via http://<server>:8080(or web port)/jmx-console: <beans>   <!-- this bean must not be lazily initialized if the exporting is to happen -->   <bean id="exporter" class="org.springframework.jmx.export.MBeanExporter" lazy-init="false">     <property name="beans">       <map>         <entry key="bean:name=testBean1" value-ref="testBean"/>       </map>     </property>   </bean>   <bean id="testBean" class="org.springframework.jmx.JmxTestBean">     <property name="name" value="TEST"/>     <property name="age" value="100"/>   </bean> </beans>

Portlet with Spring Portlet MVC

Developing a Portlet with Spring Portlet MVC and SimpleFormController A previous article explained the basics of developing a Portlet. This article will introduce the Spring Portlet MVC Framework for developing Portlets. Specifically, this article will help you create a new Portlet using the SimpleFormController available in the Spring Portlet MVC Framework... http://www.unicon.net/node/838

connection pool with spring

 <!--  demo connection pool definition  -->  <bean id="demoConnectionProxy" class="org.springframework.aop.framework.ProxyFactoryBean">   <property name="targetSource" ref="demoConnectionPool"/>  </bean>  <!-- demo pooling service that holds objects in a configurable Jakarta Commons Pool -->  <bean id="demoConnectionPool" class="org.springframework.aop.target.CommonsPoolTargetSource">   <property name="maxSize" value="20"/>   <property name="targetBeanName" value="demoConnection"/>  </bean>  <!--  Demo connection bean -->  <bean id="demoConnection" class="com.demo.DemoConnection" singleton="false">   <property name="gateway" value="10.1.1.xxx"/>   <property name="port" value="yyyy"/>  </bean>

Developing J2EE Applications Using Hibernate Annotations and Spring MVC

http://www.developer.com/java/ent/article.php/10933_3577101_2