<commit_before>/**
 * 
 */
package org.pjay.springmvc;

import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.ComponentScan;
import org.springframework.context.annotation.Configuration;
import org.springframework.web.servlet.ViewResolver;
import org.springframework.web.servlet.view.InternalResourceViewResolver;

/**
 * @author vijayk
 *
 */
@Configuration
//When we have beans specific to complete application or global or jvm
@ComponentScan(basePackages = {"org.pjay.springmvc.global"})
public class ApplicationConfig {
	
	// This can be done at specific servlet level using the same way in WebConfig class
	@Bean
	public ViewResolver getViewResolver() {
		InternalResourceViewResolver internalResourceViewResolver = new InternalResourceViewResolver();
		internalResourceViewResolver.setPrefix("/WEB-INF/jsp/");
		internalResourceViewResolver.setSuffix(".jsp");
		return internalResourceViewResolver;
	}

}<commit_msg>Vijay - 2017/08/24 - Spring mvc examples<commit_after>/**
 * 
 */
package org.pjay.springmvc;

import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.ComponentScan;
import org.springframework.context.annotation.Configuration;
import org.springframework.web.servlet.ViewResolver;
import org.springframework.web.servlet.view.InternalResourceViewResolver;

/**
 * @author vijayk
 * 
 * https://stackoverflow.com/questions/31835033/web-xml-is-missing-and-failonmissingwebxml-is-set-to-true
 * https://www.youtube.com/watch?v=-pV351E_stM
 * https://kielczewski.eu/2013/11/spring-mvc-without-web-xml-using-webapplicationinitializer/
 * https://www.youtube.com/watch?v=MNgliKze8oI
 * https://stackoverflow.com/questions/7801155/how-to-run-tomcat-7-using-maven-2-tomcat-plugin
 *
 */
@Configuration
//When we have beans specific to complete application or global or jvm
@ComponentScan(basePackages = {"org.pjay.springmvc.global"})
public class ApplicationConfig {
	
	// This can be done at specific servlet level using the same way in WebConfig class
	@Bean
	public ViewResolver getViewResolver() {
		InternalResourceViewResolver internalResourceViewResolver = new InternalResourceViewResolver();
		internalResourceViewResolver.setPrefix("/WEB-INF/jsp/");
		internalResourceViewResolver.setSuffix(".jsp");
		return internalResourceViewResolver;
	}

}
{'fraction_non_alphanumeric': 0.10851063829787234, 'fraction_numerical': 0.014893617021276596, 'mean_word_length': 5.622535211267605, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, 'https://': 5, 'lorem ipsum': 0, 'www.': 2, 'xml': 3}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '1891418', 'n_tokens_mistral': 711, 'n_tokens_neox': 661, 'n_words': 129}