Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- package com.example.blog.general;
- import com.example.blog.settings.Settings;
- import org.springframework.stereotype.Component;
- @Component
- public class GeneralUrlHandler {
- public String concatenateUrl(String[] args){
- String tmp = String.format("%s://%s/%s/%d/", Settings.PROTOCOL, Settings.SITE);
- for (String arg : args){
- tmp += "/";
- tmp += arg;
- }
- return tmp;
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment