Translate

Показ дописів із міткою Spring. Показати всі дописи
Показ дописів із міткою Spring. Показати всі дописи

вівторок, 5 липня 2016 р.

JUGLviv meetup: SAP Hybris architecture


Dear Friends, 

We would like to invite you to the next JUG Meetup, which will occur this Thursday, July 12th, 18:00!

This time, we have a great speaker, from Sweden! 

Marko Salonen, Software Architect @Remit

Marko Salonen is developer and architect with 10 experience from different java based technologies. Last 6 years he has been focusing in e-commerce and mainly SAP Hybris with some large scale installations as architect and lead developer. He is passionate about competence sharing and enjoys working with teams. Currently he works as SAP Hybris Competence lead and partner at Remit , lives in Stockholm, Sweden with his wife and 11 months old son.

Topic of the talk:


SAP Hybris architecture


Topic description:


SAP Hybris is a large enterprise e-commerce platform. It has a Java based architecture using open technologies like Spring to build a flexible, scalable and service oriented software. Still there are challenges that need to be tackled when a large number of developers implement functionality. In this presentation Marko will talk how SAP Hybris architecture it is built to simplify the development and give some examples from earlier projects where there was challenges and how these where solved.

Venue:

Yana Mateika St, 6,
Lviv

Sponsor:

This event is supported by Remit!



The event is completely free, but requires registration


четвер, 16 липня 2015 р.

Spring: migration from 3.x to 4.x issue



Today we’ve got such exception
org.springframework.web.HttpMediaTypeNotAcceptableException: Could not find acceptable representation
quick investigation on Spring sources led us to issue with json serialization.
We use jackson for converting  from object to json behind the scene
For Spring 3.x we configured
<dependency>
<groupId>org.codehaus.jackson</groupId>
<artifactId>jackson-mapper-asl</artifactId>
<version>1.4.2</version>
</dependency>

 

But Spring 4.x requires jackson v2
<dependency>
<groupId>com.fasterxml.jackson.core</groupId>
<artifactId>jackson-core</artifactId>
<version>2.5.4</version>
</dependency>
<dependency>
<groupId>com.fasterxml.jackson.core</groupId>
<artifactId>jackson-databind</artifactId>
<version>2.5.4</version>
</dependency>
 

Thx to Xavier Padró and his blog for hint

Also you can read more about json serialization in Spring 4.x on Spring official blog


субота, 20 грудня 2014 р.

середа, 30 липня 2014 р.

вівторок, 8 квітня 2014 р.

Small Spring Rest issue


Today I've got 415 Unsupported Media Type on Spring MVC based project for such method

There was incorrect parameter consumes = "application/json". I'd forgotten to remove it when changed RequestMethod from POST to GET. Perhaps it could be useful for somebody.

пʼятниця, 18 жовтня 2013 р.

Spring tutorial


Ще оlни сайт з великою к-сть туторіалів Spring і не тільки...
http://hmkcode.com/spring-framework-tutorial/

четвер, 19 вересня 2013 р.

Spring.io


Spring відкрив/створив новий сайт http://spring.io/ для полегшення і пришвидшення навчання всього спектру технологій.

Дуже раджу відвідати!

понеділок, 2 вересня 2013 р.

середа, 28 серпня 2013 р.

How to use Events in Spring 3.x



There are many concepts and techniques for creating loosely coupled applications,Event is one of them. Events can eliminate many of dependencies in your code. Some times without events, SRP* is very hard to implement. Observable interface in java can help us to implement events (through Observer Pattern).
But wait, the goal of this post is a fast tutorial about Spring Event. Spring has some nice facilities for creating Event Driven Applications. You can raise a specific event in a bean and listen to it in the other bean.


понеділок, 3 червня 2013 р.

Spring Data (JPA)


Spring-Data
Development of web-applications with the help of Spring MVC implies creation of several logical layers of architecture. One of the layers is a DAO (Repository) layer. It is responsible for communication with a database. If you developed the DAO layer at least once, you should know that it involves a lot of boilerplate code. A Spring Data take a part of the routine job related to the DAO on itself.

In the post I’m going to provide an example of application which will demonstrateSpring Data (JPA) in conjunction with Spring MVC, MySQL and Maven.Hibernate will be used as implementation of the JPA. As you probably know, I’m a real fan of java based configurations, so I will use this approach to configure the Spring Data. In the end of the tutorial you can find a link to the sample project on GitHub.



вівторок, 12 березня 2013 р.

Spring Expression Language (SpEL)


Spring пропонує шикарні можливості для декларатовного опису параметрів, а вершиною можливостей є Spring Expression Language. По суті, це потужня мова, що надає динаміку до конфігурування бінів, у тому числі можливість працювати графом об"єктів під час виконання. Хто знайомий з OGNL - то це дуже подібно і вшито в спрінг контекст.

Найпростіший приклад: припустимо, ви маєте проперті файл у якому даєте можливість корисутвачу задавати якийсь інтервал часу в годинах (тобто з точки зору користвувача мінімальний крок в налаштуваннях є година), але самі в коді потребуєте секунди, можна інджектати це ось таким чином:
 
<bean class="com.blogspot.jug-lviv.Test" id="test">
  <property name="testField" value="#{${time.interval.hours}*60*60}">
</property></bean>

Наступний приклад, це можливість викликати вашу кастомну функцію, припустимо ви маєте пропертю, до користувач задає якусь відносну директорію, а ви хочете в біні отримати вже абсолютний шлях. Ваший абсолютний шлях = спецефічний для хосту шлях + відносний шлях.

Ви пишет клас що реалізую інтерфейс:

 
interface PathUtil {
   String getRealPath(String relativePath);
}
і тепер у вашій спрінг конфігурації ви можете писати, отримуючи одразу абсолютний шлях інджектнутим в бін:
 
<bean class="com.blogspot.jug-lviv.Test" id="test">
  <property name="testField" 
    value="#{ T(com.blogspot.jug-lviv.PathUtilImpl).getRealPath(${metrics.storage}) }">
</property></bean>

Ну і варіант з інджектанням дефолтного значення, коли воно не доступне серед пропертів:

 
<bean class="com.blogspot.jug-lviv.Test" id="test">
  <property name="topGrade" 
        value="#{${top.grade} == null ? '100' : ${top.grade} }}">
</property></bean>

Всі зазначені праиклади працюють також для конфігурацій через анотації.
Більше читаємо тут http://static.springsource.org/spring/docs/3.0.0.M3/reference/html/ch07.html

SPRING TOOL SUITE 3.2.0 RELEASED + Webinar


11 березня Spring випустив в світ нову версію добре відобї надбудови над екліпсом.
Деталі обновлення і посилання на скачування можна знайти тут:
http://www.springsource.org/node/4247

Також 14 березня о 17,00 відбудиться вебінар:MULTI CLIENT DEVELOPMENT WITH SPRING
Реєстрація і деталі можна знати ось тут:
http://www.springsource.org/node/4033



вівторок, 29 січня 2013 р.

Spring Framework 3.2 - Themes and Trends


Відео вебінару Spring Framework 3.2 - Themes and Trends




пʼятниця, 11 січня 2013 р.

Webinars. January



Webinars від Spring Source

17 Січня 17.00    SPRING FRAMEWORK 3.2 - THEMES AND TRENDS
Реєстрація тут

24 Січня 17.00    ARCHITECTURE OF A MODERN WEB APP
Реєстрація тут

31 Січня 17.00   IOC + JAVASCRIPT
Реєстрація тут

Webinars від компанії Exigen Services  (http://www.exigenservices.ru)

23 Січня 13.00 "Apache Maven 2" part 1
30 Січня 13.00 "Apache Maven 2" part 2

Посилання на реєстрацію і детальну інформацію тут



неділя, 16 грудня 2012 р.

Spring Framework 3.2 GA


13 грудня був оголошений вихід в світ Spring Framework 3.2 GA

Посилання на сторінку оголошення: 
http://blog.springsource.org/2012/12/13/spring-framework-3-2-goes-ga/

Посилання на документацію і новинки 3.2:
http://static.springsource.org/spring-framework/docs/3.2.0.RELEASE/spring-framework-reference/html/new-in-3.2.html

ПС. Також хочу нагадати, що ми всіх чекаємо на нашій зустрічі 25 грудня.
Деталі: http://jug-lviv.blogspot.com/2012/12/17-java-user-group-java-8-lambda.html

середа, 5 грудня 2012 р.

Spring Integration 2.2.0 GA and STS 3.2.0.M1 has been released


3 Грудня Spring випустив нову версію Spring Integration 2.2.0 GA і STS 3.2.0.M1

Посилання на додаткову інформацію:



вівторок, 27 листопада 2012 р.

REST service and Android client


Some time ago I tried to develop pet application with Guice+Restlet and deploy to GAE. The main idea was to expose several REST services and access to them from android and web clients. I didn't finished it due to lot issue with restlet. So I decided trying MVC REST and spring android-rest-template. It works wonderful. Just few lines and that's it. As usual I run server part on GAE
This is example of my REST service




And here you can see corresponding android client




So if you need build REST service and call it from android app, I recommend to use given spring solution