Comments (5)
@scotty6435 which version of Rqueue, you're using? AFAIR, once you set rqueue.web.url.prefix
, it should work without changing any code. Please let me know if you find its other way around.
from rqueue.
@sonus21 The dashboard page has documentation on the necessary ResourceHandlerRegistry needed when the path config is added. I've checked and confirmed that without this, the generated paths are correct but the static resources are only available on the /rqueue/ root not the custom one.
from rqueue.
Which version of Rqueue you're using?
These lines suggest it should be generating correct path.
![Screenshot 2023-10-04 at 7 11 44 PM](https://private-user-images.githubusercontent.com/11817278/272595828-42eac1b1-5f9b-4402-9149-293bbaf09a39.png?jwt=eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJnaXRodWIuY29tIiwiYXVkIjoicmF3LmdpdGh1YnVzZXJjb250ZW50LmNvbSIsImtleSI6ImtleTUiLCJleHAiOjE3MTU0NTI3MDIsIm5iZiI6MTcxNTQ1MjQwMiwicGF0aCI6Ii8xMTgxNzI3OC8yNzI1OTU4MjgtNDJlYWMxYjEtNWY5Yi00NDAyLTkxNDktMjkzYmJhZjA5YTM5LnBuZz9YLUFtei1BbGdvcml0aG09QVdTNC1ITUFDLVNIQTI1NiZYLUFtei1DcmVkZW50aWFsPUFLSUFWQ09EWUxTQTUzUFFLNFpBJTJGMjAyNDA1MTElMkZ1cy1lYXN0LTElMkZzMyUyRmF3czRfcmVxdWVzdCZYLUFtei1EYXRlPTIwMjQwNTExVDE4MzMyMlomWC1BbXotRXhwaXJlcz0zMDAmWC1BbXotU2lnbmF0dXJlPTdkMGRlYjQ4NGYyMmMyYTE4YTMyZWM0OWY5NTEzNGM5ZTM4MjY2Y2Y5NTMxYzA3NTE4YWUzOWQwY2NjMDgyNDgmWC1BbXotU2lnbmVkSGVhZGVycz1ob3N0JmFjdG9yX2lkPTAma2V5X2lkPTAmcmVwb19pZD0wIn0.nlOMCnjk0Kbaj9zhlkDQLgrQUqnv_zIoSv2uMwTn6iQ)
![Screenshot 2023-10-04 at 7 11 50 PM](https://private-user-images.githubusercontent.com/11817278/272595724-6a4e81a8-89e0-4b76-a202-bfd135240ccf.png?jwt=eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJnaXRodWIuY29tIiwiYXVkIjoicmF3LmdpdGh1YnVzZXJjb250ZW50LmNvbSIsImtleSI6ImtleTUiLCJleHAiOjE3MTU0NTI3MDIsIm5iZiI6MTcxNTQ1MjQwMiwicGF0aCI6Ii8xMTgxNzI3OC8yNzI1OTU3MjQtNmE0ZTgxYTgtODllMC00Yjc2LWEyMDItYmZkMTM1MjQwY2NmLnBuZz9YLUFtei1BbGdvcml0aG09QVdTNC1ITUFDLVNIQTI1NiZYLUFtei1DcmVkZW50aWFsPUFLSUFWQ09EWUxTQTUzUFFLNFpBJTJGMjAyNDA1MTElMkZ1cy1lYXN0LTElMkZzMyUyRmF3czRfcmVxdWVzdCZYLUFtei1EYXRlPTIwMjQwNTExVDE4MzMyMlomWC1BbXotRXhwaXJlcz0zMDAmWC1BbXotU2lnbmF0dXJlPTQ0MDk1NjA0ZmM0MjliMzZiNmFiODgwNDMxZWJlOTJlMzAxNjJhZjAyMGI4ZTAwZTZkODZkNDE5NTk2ZmY5M2UmWC1BbXotU2lnbmVkSGVhZGVycz1ob3N0JmFjdG9yX2lkPTAma2V5X2lkPTAmcmVwb19pZD0wIn0.fiuubiNFmZb_tRZRP6enurZ4j6zKNF7HNplym-smSo8)
This is my MVC config, and its working perfectly fine.
@EnableWebMvc
@Configuration
public class MvcConfig implements WebMvcConfigurer {
@Value("${rqueue.web.url.prefix:}")
private String rqueueWebUrlPrefix;
@Override
public void addResourceHandlers(ResourceHandlerRegistry registry) {
if (!registry.hasMappingForPattern("/webjars/**")) {
registry
.addResourceHandler("/webjars/**")
.addResourceLocations("classpath:/META-INF/resources/webjars/");
}
if (!StringUtils.isEmpty(rqueueWebUrlPrefix)) {
registry
.addResourceHandler(rqueueWebUrlPrefix + "**")
.addResourceLocations("classpath:/public/");
}
if (!registry.hasMappingForPattern("/**")) {
registry.addResourceHandler("/**").addResourceLocations("classpath:/public/");
}
}
}
MVC config can't be added by Rqueue as Rqueue does not control the MVC configurer class.
from rqueue.
I'm now using 3.1.0 however I'm still getting a failure:
You included a code snippet of 'your config' but in your first comment you said that no configuration is needed beyond the rqueue.web.url.prefix property. If I add my own configuration file like you have above, it works for me also. I was asking whether this could be integrated into the project so that it did not have to be managed independently by anyone looking to change prefix paths.
from rqueue.
Oh! I see no, we have to add this manually as this can not be controlled by Rqueue and its even have no idea whether any configs are there or not.
from rqueue.
Related Issues (20)
- what is the sonatypeUsername and sonatypePassword? HOT 3
- Serialization support java time module HOT 1
- Deleted messages are kept in memory HOT 5
- Weighted priorisation with maximum concurrency HOT 2
- Question: Re-starting processing task when system restarts HOT 7
- Do you plan to use spring-cloud-sleuth to propagate the traceId? HOT 5
- Dashboard shows empty even thought Rqueue is working fine HOT 13
- Question: Integration scenario with multiple queues HOT 4
- rqueue workflow discussion HOT 4
- Support of jackson-databind 2.16.0 HOT 3
- Login/pass for queue dashboard HOT 4
- Lack of available threads HOT 2
- Service-Level Concurrency Control HOT 1
- IllegalArgumentException when accessing queue details HOT 1
- springboot 3.2 can not work HOT 5
- springboot 2.7 can not work HOT 9
- Typo in dashboard text HOT 2
- RQueue attempting to bootstrap despite being "disabled" HOT 1
- Best practice of initializing a queue (producer only) HOT 1
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 rqueue.