Skip to content

Instantly share code, notes, and snippets.

@gurkan0791
gurkan0791 / Config.java
Created December 20, 2017 16:45
Spring File upload Java Configuration
@Configuration
@ComponentScan("com.myspring")
@EnableWebMvc
public class Config extends WebMvcConfigurerAdapter{
@Bean
public ViewResolver viewResolver(){
InternalResourceViewResolver viewResolver = new InternalResourceViewResolver();
viewResolver.setViewClass(JstlView.class);
viewResolver.setPrefix("/WEB-INF/jsp/");
viewResolver.setSuffix(".jsp");
@gurkan0791
gurkan0791 / app.js
Created September 27, 2016 17:14
Using Java JSTL inside Javascript
//JSTL combined Javascript
var markers = [
<c:forEach var="row" items="${result.rows}">
['<c:out value="${row.aciklama}" />',
<c:out value="${row.KONUME}" />, //double without apostrophe
<c:out value="${row.KONUMB}" />,
<c:out value="${row.EVID}" />,
'<c:out value="${row.aptadi}" />',
'<c:out value="${row.mahalle}" />',
'<c:out value="${row.sokak}" />',
@gurkan0791
gurkan0791 / angular-cli.txt
Last active August 27, 2016 12:59
Setup angular-cli webpack on windows 10
# node v6.4.0 npm v3.10.6
npm uninstall -g angular-cli
npm cache clean
npm install -g angular-cli@webpack
ng -v
angular-cli: 1.0.0-beta.11-webpack.2
node: 6.4.0
os: win32 x64