For anyone battling with this, I tried the above approach, but it's incomplete. However, there is a class in Spring Data which does the job:
@Bean
public...
Type: Posts; User: nealeu; Keyword(s):
For anyone battling with this, I tried the above approach, but it's incomplete. However, there is a class in Spring Data which does the job:
@Bean
public...
Hit this myself with the Spring 3.2.0 changes in this area, having been using
@RequestHeader("If-Modified-Since") Date lastModified
without any problems.
The z format element (for GMT...
The reason the exception is not getting thrown is that the default WriteConcern on MongoTemplate is NONE.
The following gets me around the problem:
@Configuration
@Profile("default") ...
I'm looking further at this and drilling deeper, the ignored result should not be important as we should get a MongoException...
I've looked into this, and it looks like the WriteResult returned from collection.save(dbDoc) in org.springframework.data.mongodb.core.MongoTemplate.saveDBObject(String, DBObject, Class<?>) is...
Hi,
I just spotted this and am working in this area, so I thought I'd contribute.
As far as I understand the @Id annotation (or a field called 'id' if no annotations is present), maps to the...
Craig,
I've been facing the same problem. I've just narrowed it down by taking the Spring Social Showcase and changing only the twitter key and secret in application.properties to that of an...
Thanks.
Maybe this will do the job:
http://git.springsource.org/spring-integration/spring-integration/merge_requests/3
Hi,
Just looking at some more work around inbound-channel-adapter, and initially I was a bit thrown by the presence of view-name as an option.
A look at the source for...
@Mark:
It's the triggered request scenario, except there's no information I specifically want within the poller.
At most, I may use SpEL to put a timestamp in the request URI, but the trigger is...
Feed adapter will clearly work for news feeds, but what about the generic HTTP case of that scenario?
SI has support for handling HTTP requests as a Spring Controller, via <http:inbound-channel-adapter ... /> but I can't find how I go about polling, as supported by other inbound channel adapters.
...
Looks like two of us jumped in at once.
I'm guessing from Oleg's response (do correct/confirm, Oleg), that all headers and response code are mapped to Message headers, and then back to...
Are you setting expected-response-type on your outbound gateway?
To cover all HTTP requests (e.g. if you're doing an Atom POST it'll return the published version in the body of the response, as...
Here's my base test class and a snippet:
/**
* Abstract class to run controller tests.
* <p>
* This class ensures that:
* <li> the tests are run with a Spring context loaded.
If you look at the files in the backup directory, you'll see that there is a changed classname.
I found that pasting the contents of context.xml into tcServer's conf/context.xml worked. I did it...
Hi,
Could you supply more details on what you are doing.
I use STS 2.3.1 to develop maven projects and deploy to tcServer.
If you have a Maven WAR project, you should find that when you...
Hi,
They say a little knowledge is dangerous...
Spring Insight uses aspects to intercept various calls, and log trace data.
The /insight webapp then allows that trace data to be viewed.
...
Hi,
They say a little knowledge is dangerous...
Spring Insight uses aspects to intercept various calls, and log trace data.
The /insight webapp then allows that trace data to be viewed.
...
No help?
Okay. Guess it's a bug, so JIRA it is.
I've just updated to m2eclipse 0.9.9 and it's even worse (POM editor drastically changed, and missing tabs for repos, build - ability to view effective pom using all tabs, ...)
Given that STS is a...
Hi,
Is there any plan to move the m2eclipse plugin forward?
I've been very much impressed with STS apart from one thing: the maven integration. If I enable maven project integration, I often...
Hi,
I've been looking around trying to find out what's going on with a test case I have for ensuring that I cannot insert duplicates, where I have a unique constraint AND a generated unique Id.
...
That works a treat.
Yes. That's fantastic.
I'll visit right away, just once I've finished chewing my own arm off.