Skip to content

Instantly share code, notes, and snippets.

🎯
Focusing

Gürkan Yeşilyurt gurkan0791

🎯
Focusing
View GitHub Profile
@gurkan0791
gurkan0791 / Config.java
Created Dec 20, 2017
Spring File upload Java Configuration
View Config.java
@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 Sep 27, 2016
Using Java JSTL inside Javascript
View app.js
//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 Aug 27, 2016
Setup angular-cli webpack on windows 10
View angular-cli.txt
# 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
You can’t perform that action at this time.