React Native: Difference between revisions
Jump to navigation
Jump to search
No edit summary |
|||
Line 40: | Line 40: | ||
</source> | </source> | ||
|} | |} | ||
<source lang="java"> | |||
@Configuration | |||
public class WebConfiguration extends WebMvcConfigurerAdapter { | |||
@Override | |||
public void addViewControllers(ViewControllerRegistry registry) { | |||
registry.addViewController("/{spring:\\w+}").setViewName("forward:/"); | |||
registry.addViewController("/**/{spring:\\w+}").setViewName("forward:/"); | |||
registry.addViewController("/{spring:\\w+}/**{spring:?!(\\.js|\\.css)$}").setViewName("forward:/"); | |||
} | |||
} | |||
</source> | |||
==References== | ==References== |
Revision as of 11:01, 25 October 2019
brew install yarn
brew install node
brew install watchman
brew tap AdoptOpenJDK/openjdk
brew cask install adoptopenjdk8
|
vim $HOME/.bash_profile
export ANDROID_HOME=$HOME/Library/Android/sdk
export PATH=$PATH:$ANDROID_HOME/emulator
export PATH=$PATH:$ANDROID_HOME/tools
export PATH=$PATH:$ANDROID_HOME/tools/bin
export PATH=$PATH:$ANDROID_HOME/platform-tools
|
https://chorke.org/
└─ default controller
├─ api controller
├─ mob controller
├─ tab controller
└─ web controller
|
https://chorke.org/
└─ DefaultController
├─ APIController
├─ MOBController
├─ TABController
└─ WEBController
|
@Configuration
public class WebConfiguration extends WebMvcConfigurerAdapter {
@Override
public void addViewControllers(ViewControllerRegistry registry) {
registry.addViewController("/{spring:\\w+}").setViewName("forward:/");
registry.addViewController("/**/{spring:\\w+}").setViewName("forward:/");
registry.addViewController("/{spring:\\w+}/**{spring:?!(\\.js|\\.css)$}").setViewName("forward:/");
}
}