dev #40

Merged
JoeKung merged 7 commits from dev into main 2026-03-11 15:32:15 +01:00
Showing only changes of commit b7dfc53bc0 - Show all commits

View File

@@ -5,6 +5,7 @@ import com.printcalculator.entity.ShopProduct;
import com.printcalculator.repository.ShopCategoryRepository; import com.printcalculator.repository.ShopCategoryRepository;
import com.printcalculator.repository.ShopProductRepository; import com.printcalculator.repository.ShopProductRepository;
import org.springframework.beans.factory.annotation.Value; import org.springframework.beans.factory.annotation.Value;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service; import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional; import org.springframework.transaction.annotation.Transactional;
@@ -39,10 +40,11 @@ public class ShopSitemapService {
private volatile CachedSitemap cachedSitemap; private volatile CachedSitemap cachedSitemap;
@Autowired
public ShopSitemapService(ShopCategoryRepository shopCategoryRepository, public ShopSitemapService(ShopCategoryRepository shopCategoryRepository,
ShopProductRepository shopProductRepository, ShopProductRepository shopProductRepository,
@Value("${app.frontend.base-url:http://localhost:4200}") String frontendBaseUrl, @Value("${app.frontend.base-url:http://localhost:4200}") String frontendBaseUrl,
@Value("${app.sitemap.shop.cache-seconds:900}") long cacheSeconds) { @Value("${app.sitemap.shop.cache-seconds:3600}") long cacheSeconds) {
this(shopCategoryRepository, shopProductRepository, frontendBaseUrl, cacheSeconds, Clock.systemUTC()); this(shopCategoryRepository, shopProductRepository, frontendBaseUrl, cacheSeconds, Clock.systemUTC());
} }