Comments (4)
You appear to be trying to bind configuration properties directly to redis.clients.jedis.HostAndPort
. That won't work in a native image as the class has not been compiled with -parameters
. Rather than binding directly to HostAndPort
you should bind properties to a class that you control and can compile with -parameters
. An instance of HostAndPort
can then be created from the instance of your own class.
If you have any further questions, please follow up on Stack Overflow or Gitter. We prefer to use GitHub issues only for bugs and enhancements.
from spring-aot-smoke-tests.
You appear to be trying to bind configuration properties directly to
redis.clients.jedis.HostAndPort
. That won't work in a native image as the class has not been compiled with-parameters
. Rather than binding directly toHostAndPort
you should bind properties to a class that you control and can compile with-parameters
. An instance ofHostAndPort
can then be created from the instance of your own class.If you have any further questions, please follow up on Stack Overflow or Gitter. We prefer to use GitHub issues only for bugs and enhancements.
do you mean i create a sub class as extends HostandPort class ,and try to compile ? thks and i will try and get a response
from spring-aot-smoke-tests.
i have used a dataClass init configuration for jedis config insteadof use HostAndPort class directly,like below ,but the exeception still ouucred while native compiling .
@ConfigurationProperties(prefix = "jedis")
@Data
public class RedisConfigProperties {
// host list
private List<RedisHost> hosts = new ArrayList<>();
@Data
public static class RedisHost{
private String host;
private int port;
}
public Set<HostAndPort> getRedisHosts(){
return new HashSet<>(U.map(hosts, o -> new HostAndPort(o.getHost(), o.getPort())));
}
}
from spring-aot-smoke-tests.
As Andy stated above:
If you have any further questions, please follow up on Stack Overflow or Gitter. We prefer to use GitHub issues only for bugs and enhancements.
Please post your question as suggested, with as much detail and sample code as possible so that the community can try to help you.
from spring-aot-smoke-tests.
Related Issues (20)
- Unable to manually start a smoke test in concourse HOT 2
- Gradle build doesn't include all tests
- Add Spring Cloud OpenFeign sample HOT 2
- Test Liquibase with a multi-file change log
- Add a smoke test that uses @EntityScan
- Aspect smoke test failed HOT 1
- Spring data aerospike native graalvm HOT 1
- Upgrade to Graal 22.3.2
- Stabilise tests that use httpbin.org HOT 1
- Upgrade to NBT 0.9.23 HOT 1
- Add a smoke test for ServletComponentScan with WebServlet, WebFilter, and WebListener HOT 2
- Investigate using mccutchen/go-httpbin HOT 8
- Update Docker Compose to 2.20.2
- Reduce how often CI builds download Gradle HOT 4
- Add support for configuring JVM args on the application under test
- Add support for sending a Slack notification when a smoke test succeeds or fails
- Add native test for @Resource
- add a redis-jedis smoke test
- Add support for smoke testing commercial releases
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from spring-aot-smoke-tests.