Skip to content

Commit

Permalink
dev profile
Browse files Browse the repository at this point in the history
  • Loading branch information
topak27 committed May 31, 2015
1 parent 5cf1a66 commit 358a805
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 1 deletion.
2 changes: 2 additions & 0 deletions src/main/java/com/clone/google/Application.java
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Profile;
import org.thymeleaf.templateresolver.FileTemplateResolver;
import org.thymeleaf.templateresolver.ITemplateResolver;
import org.thymeleaf.templateresolver.TemplateResolver;
Expand All @@ -11,6 +12,7 @@
public class Application {

@Bean
@Profile("dev")
public ITemplateResolver defaultTemplateResolver() {
TemplateResolver resolver = new FileTemplateResolver();
resolver.setSuffix(".html");
Expand Down
3 changes: 2 additions & 1 deletion src/main/resources/application.properties
Original file line number Diff line number Diff line change
@@ -1 +1,2 @@
error.whitelabel.enabled=false
error.whitelabel.enabled=false
#spring.profiles.active=dev

0 comments on commit 358a805

Please sign in to comment.