Juergen Hoeller
4a470e0a37
Prevent @Bean method overloading by default (with enforceUniqueMethods flag)
...
Closes gh-22609
2022-02-17 22:37:34 +01:00
Juergen Hoeller
41ee23345d
Support for registering multiple init/destroy methods on AbstractBeanDefinition
...
Closes gh-28013
2022-02-17 18:14:09 +01:00
Sam Brannen
c1987e5b8c
Merge branch '5.3.x'
2022-02-16 12:12:37 +01:00
Sam Brannen
e3ceb9b23d
Polish @Target declarations for stereotype annotations
2022-02-16 12:01:14 +01:00
Arjen Poutsma
3463106532
Merge branch '5.3.x'
2022-02-16 11:24:10 +01:00
Arjen Poutsma
5ab966fbde
Polish contribution
...
See gh-28038
2022-02-16 11:16:38 +01:00
vikey
7276752e7c
Fix CronExpression issue with DST
...
This commit fixes an issue with CronExpression fails to calculate next
execution on the day of daylight saving time.
Closes gh-28038
2022-02-16 11:16:38 +01:00
Juergen Hoeller
3eb9886724
Merge branch '5.3.x'
...
# Conflicts:
# spring-context-support/src/main/java/org/springframework/scheduling/commonj/WorkManagerTaskExecutor.java
# spring-core/src/main/java/org/springframework/core/task/SimpleAsyncTaskExecutor.java
# spring-expression/src/main/java/org/springframework/expression/spel/support/ReflectivePropertyAccessor.java
# spring-tx/src/main/java/org/springframework/jca/work/SimpleTaskWorkManager.java
# spring-tx/src/main/java/org/springframework/jca/work/WorkManagerTaskExecutor.java
2022-02-04 23:24:21 +01:00
Juergen Hoeller
a71a45e719
Deprecate AsyncTaskExecutor.execute(Runnable task, long startTimeout)
...
Closes gh-27959
2022-02-04 23:21:00 +01:00
Sam Brannen
32cd73261a
Apply "switch expressions" where applicable
2022-02-03 15:21:18 +01:00
Arjen Poutsma
6e4551131d
Merge branch '5.3.x'
2022-02-01 13:52:52 +01:00
Arjen Poutsma
8f9a1cdc0c
Consider current date in "1W" cron expressions
...
Prior to this commit, the QuartzCronField::weekdayNearestTo would elapse
until the next month before checking if the current day matched.
After this commit, the current day is checked before we elapse until
the next month.
Closes gh-27966
2022-02-01 13:51:40 +01:00
Stephane Nicoll
84e6d2a95c
Merge branch '5.3.x'
2022-01-26 14:12:26 +01:00
Stephane Nicoll
6a6c7df824
Polish "Add CacheErrorHandler implementation that logs exceptions"
...
See gh-27826
2022-01-26 14:10:49 +01:00
Adam Ostrožlík
5c9fbcc23c
Add CacheErrorHandler implementation that logs exceptions
...
See gh-27826
2022-01-26 14:10:49 +01:00
Sam Brannen
f64cc08b62
Apply "instanceof pattern matching" in additional core classes
2022-01-26 13:49:50 +01:00
Sam Brannen
e565d2cabb
Apply "instanceof pattern matching" in PropertySourcesPlaceholderConfigurer
...
See gh-27947
2022-01-18 16:23:41 +01:00
Sam Brannen
4a51e4bbc7
Merge branch '5.3.x'
2022-01-18 16:16:10 +01:00
Sam Brannen
5c76ff5ef6
Ensure unresolvable placeholders can be ignored with @Value
...
Prior to this commit, if a PropertySourcesPlaceholderConfigurer bean
was configured with its ignoreUnresolvablePlaceholders flag set to
true, unresolvable placeholders in an @Value annotation were not
ignored, resulting in a BeanCreationException for the bean using @Value.
For example, given a property declared as `my.app.var = ${var}` without
a corresponding `var` property declared, an attempt to resolve
`@Value("${my.app.var}")` resulted in the following exception.
java.lang.IllegalArgumentException: Could not resolve placeholder 'var' in value "${var}"
This commit fixes this by modifying
PropertySourcesPlaceholderConfigurer's postProcessBeanFactory(...)
method so that a local PropertyResolver is created if the
ignoreUnresolvablePlaceholders flag is set to true. The local
PropertyResolver then enforces that flag, since the Environment in the
ApplicationContext is most likely not configured with
ignoreUnresolvablePlaceholders set to true.
Closes gh-27947
2022-01-18 16:00:55 +01:00
Marten Deinum
941b6af9ac
Use Collection factory methods when applicable
...
This commit replaces the use of Collections.unmodifiableList/Set/Map
with the corresponding 'of(...)' factory methods introduced in Java 9.
Closes gh-27824
2022-01-04 12:01:13 +01:00
liuzhifei
7021eb5bb1
Apply "instanceof pattern matching" in additional locations
...
Closes gh-27696
2022-01-03 16:52:38 +01:00
Stephane Nicoll
900e0f56eb
Polish "Fix typo and use of componentry"
...
See gh-27852
2021-12-29 11:05:27 +01:00
liuzhifei
65d2e9bb54
Fix typo and use of componentry
...
See gh-27852
2021-12-29 11:01:41 +01:00
Stephane Nicoll
7f73cb6726
Merge pull request #27864 from izeye
...
* pr/27864:
Update copyright year of changed file
Remove AsyncConfigurerSupport reference in EnableAsync Javadoc
Closes gh-27864
2021-12-29 10:56:40 +01:00
Stephane Nicoll
8a7a046bf0
Update copyright year of changed file
...
See gh-27864
2021-12-29 10:56:29 +01:00
izeye
88d4eac537
Remove AsyncConfigurerSupport reference in EnableAsync Javadoc
...
See gh-27864
2021-12-29 10:56:02 +01:00
Stephane Nicoll
c204cc7ba0
Update copyright year of changed file
...
See gh-27863
2021-12-29 10:54:49 +01:00
izeye
f0125afb5e
Remove references to JCacheConfigurerSupport and CachingConfigurerSupport
...
See gh-27863
2021-12-29 10:53:56 +01:00
Stephane Nicoll
772630caf1
Polish "Add Javadoc since to new PayloadApplicationEvent constructor"
...
See gh-27848
2021-12-27 12:15:27 +01:00
izeye
f3fd7b156e
Add Javadoc since to new PayloadApplicationEvent constructor
...
See gh-27848
2021-12-27 12:14:44 +01:00
izeye
713795cc34
Polish
...
See gh-27827
2021-12-21 09:36:08 +01:00
Juergen Hoeller
9dc5c9f935
Merge branch '5.3.x'
...
# Conflicts:
# build.gradle
2021-12-15 21:52:16 +01:00
Juergen Hoeller
d665977787
Polishing
2021-12-15 21:50:30 +01:00
Juergen Hoeller
96e2fc69ed
Merge branch '5.3.x'
...
# Conflicts:
# build.gradle
# spring-core/src/main/java/org/springframework/core/type/StandardAnnotationMetadata.java
# spring-core/src/main/java/org/springframework/core/type/classreading/SimpleAnnotationMetadata.java
2021-12-15 18:03:51 +01:00
Juergen Hoeller
1885ab3e07
Polishing
2021-12-15 17:58:28 +01:00
Stephane Nicoll
2f3a9dbc68
Deprecate CachingConfigurerSupport and AsyncConfigurerSupport
...
Closes gh-27813
2021-12-15 12:03:39 +01:00
Stephane Nicoll
b6faaf1fc1
Merge branch '5.3.x'
2021-12-15 10:59:50 +01:00
Stephane Nicoll
de10bb69cb
Stop resolving AsyncConfigurer instances eagerly
...
Closes gh-27808
2021-12-15 10:53:09 +01:00
Stephane Nicoll
c7642422c3
Stop resolving CachingConfigurer instances eagerly
...
Closes gh-27751
2021-12-15 10:52:09 +01:00
Juergen Hoeller
bfdb93b406
Merge branch '5.3.x'
...
# Conflicts:
# build.gradle
# src/docs/asciidoc/integration.adoc
2021-12-14 16:51:00 +01:00
Juergen Hoeller
ca84559588
Provide findAnnotationOnBean variant with allowFactoryBeanInit flag
...
Closes gh-27796
2021-12-14 16:47:12 +01:00
Stephane Nicoll
8d93dc4abb
Merge branch '5.3.x'
2021-12-14 14:05:18 +01:00
Stephane Nicoll
b06d267232
Remove references to AsyncConfigurerSupport
...
Closes gh-27812
2021-12-14 13:59:05 +01:00
Stephane Nicoll
8422d9d22f
Add default methods to CachingConfigurer
...
This commit adds default methods to CachingConfigurer and
JCacheConfigurer and removes the reference to their respective support
classes as they are now irrelevant.
Closes gh-27811
2021-12-14 13:49:57 +01:00
Juergen Hoeller
37bebeaaaf
Accept protected @Transactional/Cacheable methods on CGLIB proxies
...
Closes gh-25582
2021-12-14 09:41:23 +01:00
Yanming Zhou
d836fb4a7a
Remove unnecessary @SuppressWarnings
...
See gh-27807
2021-12-13 09:34:22 +01:00
Juergen Hoeller
7f43128a0e
Merge branch '5.3.x'
...
# Conflicts:
# build.gradle
# spring-web/src/main/java/org/springframework/web/server/MediaTypeNotSupportedStatusException.java
# spring-web/src/main/java/org/springframework/web/util/ContentCachingRequestWrapper.java
# spring-webmvc/src/main/java/org/springframework/web/servlet/handler/HandlerMappingIntrospector.java
2021-12-03 22:42:05 +01:00
Juergen Hoeller
14f24f43d7
Polishing
2021-12-03 22:36:31 +01:00
Stephane Nicoll
110e0f7f2b
Add support for Instant in @DateTimeFormat
...
Closes gh-19846
2021-12-03 16:17:52 +01:00
Stephane Nicoll
a57ea39707
Polish "Add support for YearMonth and MonthDay in @DateTimeFormat"
...
See gh-1215
2021-12-03 11:20:04 +01:00