Skip to content

Instantly share code, notes, and snippets.

@kaveenr
Created January 13, 2019 04:02
Show Gist options
  • Save kaveenr/a026165c9b148c058d207ff4b30c3eb4 to your computer and use it in GitHub Desktop.
Save kaveenr/a026165c9b148c058d207ff4b30c3eb4 to your computer and use it in GitHub Desktop.
Maven-codegen beans
<beans xmlns="http://www.springframework.org/schema/beans" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:jaxrs="http://cxf.apache.org/jaxrs" xmlns:context="http://www.springframework.org/schema/context" xsi:schemaLocation=" http://www.springframework.org/schema/beans http://www.springframework.org/schema/beans/spring-beans-3.0.xsd http://www.springframework.org/schema/context http://www.springframework.org/schema/context/spring-context-3.0.xsd http://cxf.apache.org/jaxrs http://cxf.apache.org/schemas/jaxrs.xsd">
<import resource="classpath:META-INF/cxf/cxf.xml"/>
<context:property-placeholder/>
<context:annotation-config/>
<bean class="org.springframework.web.context.support.ServletContextPropertyPlaceholderConfigurer"/>
<bean class="org.springframework.beans.factory.config.PreferencesPlaceholderConfigurer"/>
<jaxrs:server id="services" address="/v1/">
<jaxrs:serviceBeans>
<bean class="com.kaveenrodrigo.blog.codegen.sample.api.impl.DefaultApiServiceImpl"/>
</jaxrs:serviceBeans>
<jaxrs:providers>
<bean class="com.fasterxml.jackson.jaxrs.json.JacksonJsonProvider"/>
</jaxrs:providers>
</jaxrs:server>
</beans>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment