Press the right arrow to continue >
End-users requirements have evolved. People are tired of slow, unreactive Web sites. They want:
Those websites should be delivered fast.
Waiting 1 minute for your application to "deploy" is not acceptable anymore
Modern websites should be able to handle huge numbers of concurrent users
All using massive RESTful applications, which will hit your back-end servers hard
yarn global add generator-jhipster
jhipster
yarn start
yarn test
Hello, world!
./mvnw spring-boot:run
./gradlew bootRun
@Service
@Transactional
public class UserService {
@Autowired
private UserRepository userRepository;
}
@Entity
public class User implements Serializable {
@Id
private String login;
}
public interface PersistenceAuditEventRepository extends JpaRepository<PersistentAuditEvent, String> {
List<PersistentAuditEvent>
findByPrincipalAndAuditEventDateGreaterThan(String principal, LocalDateTime after);
}
@Entity
@Cache(usage = CacheConcurrencyStrategy.NONSTRICT_READ_WRITE)
public class User implements Serializable {
}
@RestController
public class AccountResource {
@PostMapping("/account")
public void saveAccount(@RequestBody UserDTO userDTO) {
userService.updateUserInformation(userDTO);
}
}
Hello, world
@Timed
public void saveAccount(@RequestBody UserDTO userDTO) {
userService.updateUserInformation(userDTO);
}
At the time of this writing (February, 2017), JHipster has:
yarn global add yo
yarn global add generator-jhipster
And use the embedded Maven wrapper to run it
(hot reload of your application will work automatically)
jhipster
./mvnw
Live reload of your client-side code (HTML, CSS, TypeScript) works thanks to Webpack and Browsersync. Edit any file and your browser will refresh automatically:
yarn start
jhipster entity Foo
(Using Docker to run the database)
./mvnw -Pprod package
docker-compose -f src/main/docker/mysql.yml up -d
java -jar target/*.war