How to use Criteria & Metamodel API with Spring Boot to create dynamic queries
Sometimes you may need to create your sql queries on runtime with some specification given by your client. In these cases, you may create many JPQLs …
Adding robots.txt and/or sitemap.xml can be cumbersome for the modern javascript framework such as VueJs, React or Angular etc..
In this short blog, I will show you how to add robots.txt and sitemap.xml to your Quasar framework (based on VueJs)
User-agent: *
Allow: /
Sitemap: https://yourWebsite.com/sitemap.xml
/public
folder of your project.After you run the Quasar project(or in the production build), you can access the robots.txt file by sending request to https://yourWebsite.com/robots.txt
<?xml version="1.0" encoding="UTF-8"?>
<urlset
xmlns="http://www.sitemaps.org/schemas/sitemap/0.9"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://www.sitemaps.org/schemas/sitemap/0.9
http://www.sitemaps.org/schemas/sitemap/0.9/sitemap.xsd">
<url>
<loc>https://yourWebsite.com/</loc>
<lastmod>2022-03-27T11:51:43+00:00</lastmod>
<priority>1.00</priority>
</url>
<url>
<loc>https://yourWebsite.com/page1</loc>
<lastmod>2022-03-27T11:51:43+00:00</lastmod>
<priority>0.80</priority>
</url>
<url>
<loc>https://yourWebsite.com/page2</loc>
<lastmod>2022-03-27T11:51:43+00:00</lastmod>
<priority>0.80</priority>
</url>
<url>
<loc>https://yourWebsite.com/page3</loc>
<lastmod>2022-03-27T11:51:43+00:00</lastmod>
<priority>0.80</priority>
</url>
</urlset>
/public
folder of your project.After you run the Quasar project(or in the production build), you can access the sitemap.xml file by sending request to https://yourWebsite.com/sitemap.xml
As a final note, you may also do some implementation to generate sitemap.xml according to the src/router/index.js
in the build step.
Sometimes you may need to create your sql queries on runtime with some specification given by your client. In these cases, you may create many JPQLs …
It is crucial to capture long running method execution in your application (whether it is an API or traditional mvc application). You should also …