package bamboo;

import bamboo.app.Bamboo;
import bamboo.util.Freemarker;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.context.annotation.Bean;
import org.springframework.ui.freemarker.FreeMarkerConfigurationFactoryBean;
import org.springframework.web.servlet.view.freemarker.FreeMarkerConfigurer;
import org.springframework.web.servlet.view.freemarker.FreeMarkerViewResolver;

import java.io.IOException;

@SpringBootApplication
public class Application {
    public static void main(String[] args) {
        SpringApplication.run(Application.class, args);
    }

    @Bean
    public Bamboo getBamboo() throws IOException {
        return new Bamboo(false);
    }

//    @Bean
//    public FreeMarkerConfigurer freemarkerConfig() {
//        FreeMarkerConfigurer freeMarkerConfigurer = new FreeMarkerConfigurer();
//        freeMarkerConfigurer.setConfiguration(Freemarker.config);
//        return freeMarkerConfigurer;
//    }
//
//    @Bean
//    public FreeMarkerViewResolver freemarkerViewResolver() {
//        FreeMarkerViewResolver resolver = new FreeMarkerViewResolver();
//        resolver.setCache(true);
//        resolver.setPrefix("");
//        resolver.setSuffix(".ftl");
//        return resolver;
//    }
}

@@ -764,566 +764,7 @@
    %7D
-%0A%0A//    @Bean%0A//    public FreeMarkerConfigurer freemarkerConfig() %7B%0A//        FreeMarkerConfigurer freeMarkerConfigurer = new FreeMarkerConfigurer();%0A//        freeMarkerConfigurer.setConfiguration(Freemarker.config);%0A//        return freeMarkerConfigurer;%0A//    %7D%0A//%0A//    @Bean%0A//    public FreeMarkerViewResolver freemarkerViewResolver() %7B%0A//        FreeMarkerViewResolver resolver = new FreeMarkerViewResolver();%0A//        resolver.setCache(true);%0A//        resolver.setPrefix(%22%22);%0A//        resolver.setSuffix(%22.ftl%22);%0A//        return resolver;%0A//    %7D
 %0A%7D%0A

Remove dead code